问题描述
如何将Visual Studio的Web开发服务器(WebDev.WebServer.exe)安装为独立应用程序?
How can I install Visual Studio's Web Development Server (WebDev.WebServer.exe) as a Standlone application?
以便我们的Web设计人员可以从SVN获取最新代码,然后运行MSBuild批处理文件来构建代码,然后运行批处理文件以使用Web开发服务器(WebDev.WebServer的本地副本)启动代码. .exe).
So that our web designers can get the latest code from SVN, then run the MSBuild batch file to build the code, and then run a batch file to start the code using a local copy of the Web Development Server (WebDev.WebServer.exe).
注意:我不不想在他们的所有计算机上安装Visual Studio.
Note: I do not want to have to install Visual Studio on all their machines.
编辑:我已按照下面的建议进行操作,但出现此错误:
EDIT: I have done as suggested below and I get this error:
推荐答案
这些文件是必需的:
- WebDev.WebHost.dll
- WebDev.WebServer.EXE
- WebDev.WebServer.exe.manifest
您可能需要在GAC中安装WebDev.WebHost.dll.
And you may need to Install WebDev.WebHost.dll in GAC.
将此代码复制并粘贴到.BAT文件中:
Copy and paste this code into a .BAT file:
@SET GACUTIL="C:\Program Files\Microsoft SDKs\Windows\v6.1\bin\gacutil.exe"
Echo Installing WebDev.WebHost.dll in GAC
%GACUTIL% -if WebDev.WebHost.dll
希望这对某人有帮助.
谢谢
这篇关于如何将WebDev.WebServer.exe安装为独立应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!