asp.net core 2.0 – multiple projects solution docker file

While I understand that dotnet core isn’t specific to Windows and not everyone is going to be using Visual Studio, there’s this neat feature that Microsoft has included inside Visual Studio (Tried it in 2017).

  1. Right click on the Web Project.
  2. Select Add.
  3. Then “Docker Support”. This will automatically fetch multiple projects into the container.

If you have multiple Web Projects, repeat the step individually for each.

Here’s the reference: https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/docker/visual-studio-tools-for-docker?view=aspnetcore-2.1#existing-app

If you happen to run with any issues when running the Docker container, try deselecting Hyper-V Services in “Windows Features” (Search for Windows Features in Start Menu), selecting again, and then restarting your computer.
Check here.

enter image description here

Leave a Comment