Jonas
Jonas

Reputation: 4584

How to start IISExpress for a web project without building?

I have this scenario:

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

Answers (2)

Maslow
Maslow

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

Shahed
Shahed

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

Related Questions