Reputation: 4584
I have this scenario:
I have a solution open, with a web project configured to use IIS
Express
.
I do a build of the solution, then close Visual Studio.
I then reopen VS to that solution.
Is there a way to just spin up IIS Express without having to do a ctrl -F5 or something like that (I don't need to build again since I know nothing has changed)?
Upvotes: 5
Views: 3419
Reputation: 18746
Get the name of the site from C:\Users\<your user>\Documents\IISExpress\config\applicationhost.config
in the <sites>
section find the one you are working on
"c:\Program Files (x86)\IIS Express\iisexpress.exe" /site:"<that thing you got from applicationhost.config>"
or on a 32bit OS
"c:\Program Files\IIS Express\iisexpress.exe" /site:"<that thing you got from applicationhost.config>"
Upvotes: 4
Reputation: 898
We can start IIS Express from Command Line. We can also configure different sites to run on specific ports. This article explains the process:
http://www.iis.net/learn/extensions/using-iis-express/running-iis-express-from-the-command-line
Upvotes: 3