且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

asp.net core 2.0-多个项目解决方案docker文件

更新时间:2023-02-15 14:23:32

虽然我了解dotnet核心并非特定于Windows,并且并不是每个人都将使用Visual Studio,但Microsoft在Visual Studio中已包含了这一简洁功能Studio(于2017年尝试).

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. 右键单击Web项目.
  2. 选择添加.
  3. 然后是"Docker支持".这将自动将多个项目提取到容器中.

如果您有多个Web项目,则分别对每个项目重复该步骤.

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

这里是参考:如果在运行Docker容器时碰巧遇到任何问题,请尝试在"Windows功能"中取消选择Hyper-V Services(在开始"菜单中搜索Windows Features),再次选择,然后重新启动计算机. 在此处.

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.