如何阻止 1 个解决方案启动您的所有网站?
我正在开发一个包含大约 30 个项目的解决方案。
所有项目都是为 1 个特定客户构建的(因此是相同的解决方案),但并非所有项目都相互依赖。
例如,我们有一个后端 API、一个前端 API、2 个网站、一些服务等。
我遇到的问题是,每次我开始调试其中 1 个项目时,Visual Studio 都会启动 9 个 ASP.NET 开发服务器(每个网站/服务 1 个)。
即使是未引用或被排除在外的项目当前构建配置正在启动。
有谁知道有什么方法可以阻止这种情况发生吗?我对此的主要不满是启动这些服务需要额外的时间。
提前致谢
I am working in a solution with about 30 projects.
All projects are build for 1 specific customer(hence the same solution) but not all of them depend on each other.
We have for example a back-end API, a front-end API, 2 websites, a few services etc.
The problem i have is that everytime i start to debug 1 of those projects, visual studio boots up 9 ASP.NET development servers(1 for each website/service).
Even projects that are not being referenced or are excluded from the current build configuration are being booted up.
Does anyone know of a way to stop this from happening? My main frustration about this is the extra time it takes to boot these services up.
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题已经被问过,请看这里:
Visual Studio 解决方案与多个 ASP.NET Web 应用程序
为了完整起见,我还将在此处包含答案。
或者您也可以选择设置IIS Express 并使用该 Web 服务器而不是 Visual Studio Web 开发服务器。
http://learn.iis.net/page.aspx/868 /iis-express-概述/
Question has been asked before, take a look here:
Visual Studio solution with multiple ASP.NET web applications
To be complete I'll include the answer here as well.
Or you can also choose to setup IIS Express and use that web server instead of the Visual Studio Web Development Server.
http://learn.iis.net/page.aspx/868/iis-express-overview/