Run ASP.NET project outside of visual studio [duplicate]

最后都变了- 提交于 2019-12-13 19:14:03

问题


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

回答1:


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


来源:https://stackoverflow.com/questions/23622613/run-asp-net-project-outside-of-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!