This question already has an answer here:
- How to start IIS Express Manually 5 answers
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
Of couse you can. To build it just run
If you use different version of framework just check the correct path
To run it call