Showing posts with label Web Development Server. Show all posts
Showing posts with label Web Development Server. Show all posts

Wednesday, November 25, 2009

Microsoft Web Development Server Command Line

If you ever need to host a web site on your machine (for testing or whatever), you can use the Microsoft Web Development Server (Visual Studio runs this from the IDE) manually via the command line.

I found this particularly useful to test deployment builds (eg: msdeploy) if you don’t have IIS!

There appears to be some confusion over where this EXE lives, but on my machine it is here:

C:\Program Files\Common Files\Microsoft Shared\DevServer\9.0\webdev.webserver.exe

All you need to do is give it a port, a file path, and the name of the virtual directory to use.

Example:

"C:\Program Files\Common Files\Microsoft Shared\DevServer\9.0\webdev.webserver.exe" /port:4955 /path:"C:\Build\Test\DotNet\Test.Project.Web" /vpath:/TestProj

Powered By Blogger