简体   繁体   English

在Visual Studio 2013中的IIS Express上托管多个Web项目

[英]Multiple web project are hosted on IIS Express in Visual Studio 2013

I have solution with 3 project. 我有3个项目的解决方案。 Out 3 project 2 of the projects are of type web API and other one is ASP.Net MVC 5 web project. 项目中的3个项目是Web API类型,另一个是ASP.Net MVC 5 Web项目。 My solution is having the setting of "Single Start up project" which is pointing to Asp.net MVC 5 project. 我的解决方案是设置“单一启动项目”,它指向Asp.net MVC 5项目。

Problem here is when I run the ASP.Net web project, It is getting hosted on IIS Express on some port. 这里的问题是当我运行ASP.Net web项目时,它会在某些端口上的IIS Express上托管。 But other two Web API projects also getting hosted, even though I have not set the "multiple start up projects". 但是其他两个Web API项目也被托管,即使我没有设置“多个启动项目”。

Is there any issue in vs 2013, or do i need to do some settings not to host all the web projects. 在vs 2013中是否有任何问题,或者我是否需要进行一些设置而不是托管所有Web项目。

Note : I am using Visual Studio 2013 community edition. 注意:我使用的是Visual Studio 2013社区版。

I just figured out by some more web search... 我刚想通过一些网络搜索...

We have to set the project property "Always Start When Debugging" to false for which ever project we don't want to host. 我们必须将项目属性“调试时始终启动”设置为false,这是我们不想托管的项目。

See the link http://blog.geocortex.com/2010/06/04/always-start-when-debugging-preventing-multiple-visual-studio-development-servers-from-starting/ 请参阅http://blog.geocortex.com/2010/06/04/always-start-when-debugging-preventing-multiple-visual-studio-development-servers-from-starting/链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM