问题
How can I install Visual Studio's Web Development Server (WebDev.WebServer.exe) as a Standlone application?
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).
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:
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.
回答1:
These files are required:
- WebDev.WebHost.dll
- WebDev.WebServer.EXE
- WebDev.WebServer.exe.manifest
And you may need to Install WebDev.WebHost.dll in GAC.
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
Hope this helps someone.
Thanks
回答2:
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.
回答3:
- Control panel
- Add/remove programs
- Right-click Microsoft Visual Studio
- Click 'Change'
- Go to the maintenance mode
- Click on the add/remove feature
- Click the download button in the new window to get multiple features
- Tick the "Web Development Server" and start update.
来源:https://stackoverflow.com/questions/1853398/how-to-install-webdev-webserver-exe-as-a-standalone-application