简体   繁体   English

在解决方案中存在网站项目时,在 Visual Studio 中构建 DockerCompose 项目会出错

[英]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 项目时,您总是会收到此错误:

Docker 撰写错误

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.

相关问题 生成解决方案时,Visual Studio 2008跳过项目 - Visual Studio 2008 skipping projects when building a solution 为解决方案中的多个 Visual Studio 2012 C# 项目启动调试器时出现 Visual Studio 2017 警告错误 - Visual Studio 2017 warning errors when starting a debugger for multiple Visual Studio 2012 C# projects in a solution 在 Visual Studio 解决方案中仅构建特定项目 - Building only particular project in the Visual Studio solution 当无法构建通用程序集时,在Visual Studio 2008的解决方案中的项目之间共享代码 - Share code between projects in a solution in Visual Studio 2008, when building a common assembly is impossible 如何确定为什么 visual studio 在构建解决方案时可能会跳过项目 - How to determine why visual studio might be skipping projects when building a solution Visual Studio 2008泄漏具有200多个项目的内存构建解决方案 - Visual Studio 2008 leaks memory building solution with 200+ projects Visual Studio:构建解决方案时输出时间戳 - Visual Studio: Output a timestamp when building solution 在Visual Studio中构建项目 - Building Projects in Visual Studio Visual Studio中是否有命令来使项目依赖于解决方案中的项目? - Is there a command in Visual Studio to get the projects dependent on a project within a solution? 在 Visual Studio/C++ 中使用 fbx SDK 构建项目时编译错误 - Compile errors when building a project using fbx SDK in Visual Studio/C++
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM