视觉工作室之外运行ASP.NET项目 [英] Run ASP.NET project outside of visual studio

查看:108
本文介绍了视觉工作室之外运行ASP.NET项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio中的ASP.NET项目,与IIS防爆preSS的作品。我想建立并运行在浏览器中的项目,而无需打开Visual Studio的。可能吗?请记住,我不想将其部署到IIS。

编辑:
我纠正根据提供的答案我的命令。这是我的命令:

  @ECHO关闭
SET CurrentDir =%CD%
SET IISRoot =为%ProgramFiles(x86)的%\\ IIS防爆preSS \\
CD / D%IISRoot%
START HTTP://本地主机:7710 /
IISEx preSS /路径:%CurrentDir%\\ ProjectFolder \\ /端口:7710


解决方案

职高,你可以。要构建它只是运行

  C:\\ WINDOWS \\ Microsoft.NET \\框架\\ v4.0.30319 \\ MSbuild.exe

如果您使用不同版本的框架,只是检查的正确路径

要运行它叫

  iisex preSS /路径:C:\\ MyApp的\\ /端口:9090

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

 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

这篇关于视觉工作室之外运行ASP.NET项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆