Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 Preview - Keep IIS Express Running

I'm trying to get a decent development experience with Visual Studio 2015 Preview. To do that I'd love to have my IIS Express running all the time instead of requiring me to start debugging.

Anyway to do that? Tried command line:

IISExpress.exe /path:pathmyproject/wwwroot
IISExpress.exe /site:SiteName

and

IISExpress.exe /path:pathtomyproject

First two give me:

Unable to locate project.json

Third one

HTTP Error 403.14 - Forbidden
like image 432
Mikeon Avatar asked Nov 28 '14 22:11

Mikeon


People also ask

How do I open IIS Express in Visual Studio 2015?

1) In Solution Explorer, right click the your project and click Properties. 2) In the left tab, click Web. 3) Select IIS Express, check out your Project Url, then create Virtual Directory.


4 Answers

Not exactly an answer, but if you can view in browser instead of Debug.

The command for view in browser is: CTRL+ SHIFT + W (or right click on project and select View -> View in broswer.)

IIS Express will start but will not close when you exit your browser.

Hope this helps, this is what I do (specially now that build/compile is no required with roslyn).

like image 171
Bart Calixto Avatar answered Sep 23 '22 18:09

Bart Calixto


Similar to VS 2013, if you disable Edit and Continue IIS Express will continue to run when you stop your debug sessions.

Open the menu item Tools/Options, look for the Debugging/General option. Scroll down and uncheck "Enable Edit and Continue"

like image 30
TexasJetter Avatar answered Sep 19 '22 18:09

TexasJetter


in the Debug menu > Start without debugging (Ctr + F5)

like image 42
user634319 Avatar answered Sep 19 '22 18:09

user634319


Visual Studio 2015 Update 3 adds the support to keep IIS Express Running

For ASP.NET Web Application projects, when "Enable Edit and Continue" checkbox is unchecked, the IIS Express process will no longer stop working every time you stop debugging.

Visual Studio Update 3 RC Release Notes

like image 32
Tim Avatar answered Sep 20 '22 18:09

Tim