1

I have an asp.net mvc 3 project I created in visual studio 2012. I would like to run the dev server from the command line rather than the IDE (usually clicking on the green play/triangle button).

My goal is to run the local web server without having to open visual studio. Any ideas?

2
  • It was my understanding that there is no longer a Visual Studio Development Server in VS2012. IIS Express is used instead. Is this what you're referring to? Commented Dec 11, 2012 at 2:05
  • If this is what runs your local instance when a user clicks on the build button in Visual Studio, then yes. I'm interested in running iisexpress.exe from a command line exactly how visual studio runs it, ideally reusing some build artifact or script created by VS (I'm new to VS). I want the command line = clicking the button in visual studio and not have to guess at any parameters. Is that possible? Commented Dec 11, 2012 at 16:28

1 Answer 1

1

Start your project from Visual Studio. Open Sysinternals Process Explorer and navigate to your iisexpress instance. In properties - Image Tab - Command Line you get a hint of how you can call it.

"C:\Program Files (x86)\IIS Express\iisexpress.exe"  /config:"C:\Users\YourProfile\Documents\IISExpress\config\applicationhost.config"  /site:"MvcApplication1(1)" /apppool:"Clr4IntegratedAppPool"

applicationhost.config will have your site in the history.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.