visual-studio 如何将 WebDev.WebServer.exe 安装为独立应用程序?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1853398/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 11:17:16  来源:igfitidea点击:

How to install WebDev.WebServer.exe as a Standalone application?

visual-studiowebdev.webserver

提问by Robs

How can I install Visual Studio's Web Development Server (WebDev.WebServer.exe) as a Standlone application?

如何将 Visual Studio 的 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).

这样我们的网页设计师就可以从SVN获取最新的代码,然后运行MSBuild批处理文件来构建代码,然后运行一个批处理文件来使用Web开发服务器的本地副本(WebDev.WebServer.exe)启动代码.

Note: I do notwant to have to install Visual Studio on all their machines.

注:我希望有对其所有的机器安装Visual Studio。

EDIT: I have done as suggested below and I get this error:

编辑:我已按照以下建议进行操作,但出现此错误:

Faulting application WebDev.WebServer.EXE, version 9.0.30729.1, time stamp 0x488f1aa2, faulting module KERNEL32.dll, version 6.0.6001.18215, time stamp 0x49953395, exception code 0xe0434f4d, fault offset 0x000442eb, process id 0x%9, application start time 0x%10.

错误的应用程序 WebDev.WebServer.EXE,版本 9.0.30729.1,时间戳 0x488f1aa2,错误的模块 KERNEL32.dll,版本 6.0.6001.18215,时间戳 0x49953395,异常代码 0xe0434f4004d,错误进程 0xe0434f40040404000 %10。

回答by Robs

These files are required:

这些文件是必需的:

  • WebDev.WebHost.dll
  • WebDev.WebServer.EXE
  • WebDev.WebServer.exe.manifest
  • WebDev.WebHost.dll
  • WebDev.WebServer.EXE
  • WebDev.WebServer.exe.manifest

And you may need to Install WebDev.WebHost.dll in GAC.

并且您可能需要在 GAC 中安装 WebDev.WebHost.dll。

Copy and paste this code into a .BAT file:

将此代码复制并粘贴到 .BAT 文件中:

@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

Hope this helps someone.

希望这可以帮助某人。

Thanks

谢谢

回答by Troy Parsons

For VS2010, you will need to copy the WebDev.WebServer20.exe and WebDev.WebServer40.exe files to a location of your choice. When they launch, they set the app domain base directory to the path you specify on the command line, so you will also need to put the WebDev.WebHost.dll and WebDev.WebHost20.dll assemblies in the GAC so they can be found.

对于 VS2010,您需要将 WebDev.WebServer20.exe 和 WebDev.WebServer40.exe 文件复制到您选择的位置。当它们启动时,它们将应用程序域基目录设置为您在命令行中指定的路径,因此您还需要将 WebDev.WebHost.dll 和 WebDev.WebHost20.dll 程序集放在 GAC 中以便可以找到它们。

回答by Shaikh Saif

  1. Control panel
  2. Add/remove programs
  3. Right-click Microsoft Visual Studio
  4. Click 'Change'
  5. Go to the maintenance mode
  6. Click on the add/remove feature
  7. Click the download button in the new window to get multiple features
  8. Tick the "Web Development Server" and start update.
  1. 控制面板
  2. 添加/删除程序
  3. 右键单击 Microsoft Visual Studio
  4. 点击“更改”
  5. 进入维护模式
  6. 单击添加/删除功能
  7. 在新窗口点击下载按钮获取多项功能
  8. 勾选“Web 开发服务器”并开始更新。