1

I have an ASP.NET project in visual studio which works with IIS Express. I want to build and run the project in the browser without opening visual studio. Is it possible? Remember that I don't want to deploy it to IIS.

EDIT: I corrected my command based on the provided answers. This is my command:

@ECHO off
SET CurrentDir="%CD%"
SET IISRoot="%ProgramFiles(x86)%\IIS Express\"
CD /D %IISRoot%
START http://localhost:7710/
IISExpress /path:%CurrentDir%\ProjectFolder\ /port:7710
Saeid
  • 1,573
  • 3
  • 19
  • 37
  • So you want to run IIS Express to access the web-application project? – Dai May 13 '14 at 04:05
  • 1
    Yes, I want to run the application but don't need to debug it inside visual studio. Loading process is time consuming. – Saeid May 13 '14 at 04:07
  • 2
    [this](http://weblogs.asp.net/wenching/archive/2008/07/24/running-asp-net-2-0-on-filesystem-instead-of-iis-without-visual-studio-2005-2008-installed.aspx) may help you. – jomsk1e May 13 '14 at 04:09
  • jomsk1e's link is good. If it's an ASP.NET 4.0 site you will need to run WebDev.WebServer40.exe instead of WebServer20 – sh1rts May 13 '14 at 04:14

1 Answers1

4

Of couse you can. To build it just run

 C:\ Windows\Microsoft.NET\Framework\v4.0.30319\MSbuild.exe

If you use different version of framework just check the correct path

To run it call

  iisexpress /path:c:\myapp\ /port:9090
Piotr Stapp
  • 19,392
  • 11
  • 68
  • 116