[英]Building DockerCompose project in Visual Studio errors our when website projects exist in the solution
I'm currently building a MicroServices project.我目前正在构建一个微服务项目。 We split up the Frontend and the Backend in seperate different docker containers.
我们将前端和后端分开在不同的 docker 容器中。
We've added the frontend projects to the Visual Studio solution as well for easy access by including them as website projects (They are purely angular so don't have a csproj file):我们已经将前端项目添加到 Visual Studio 解决方案中,以便通过将它们包含为网站项目来轻松访问(它们纯粹是有角度的,因此没有 csproj 文件):
However whenever you now build the Docker-Compose project you always receive this error:但是,每当您现在构建 Docker-Compose 项目时,您总是会收到此错误:
Severity Code Description Project File Line Suppression State Error MSB3202 The project file "C:******************.Platform******.Platform.Frontend.Customer\\" was not found.严重性代码说明项目文件行抑制状态错误 MSB3202 项目文件“C:********************.Platform******.Platform.Frontend.Customer\\”没有找到。 docker-compose C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\MSBuild\\Sdks\\Microsoft.Docker.Sdk\\build\\Microsoft.VisualStudio.Docker.Compose.targets 216
docker-compose C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\MSBuild\\Sdks\\Microsoft.Docker.Sdk\\build\\Microsoft.VisualStudio.Docker.Compose.targets 216
This also happens when the Docker-Compose file doesn't even have a reference to the Website projects.当 Docker-Compose 文件甚至没有对网站项目的引用时,也会发生这种情况。 When I remove the projects from the Solution the build starts working again
当我从解决方案中删除项目时,构建再次开始工作
There seems to be a workaround available for this issue.似乎有一种解决方法可用于解决此问题。 Please check this comment on DockerTools GitHub repo
请在 DockerTools GitHub repo 上查看此评论
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.