Nightly builds and VisualStudio WebServices

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
Pawan
Posts: 19
Joined: Wed Apr 28, 2004 12:46 am

Nightly builds and VisualStudio WebServices

Post by Pawan » Fri Oct 29, 2004 12:24 pm

Hi,

When we do a nightly build, we get all the files starting at a root directory and use "devenv.exe" to simply compile the solution files. It works great except for Web projects (web services, asp.net projects). These projects seem to put their files in c:\inetpub\wwwroot\.... directories but the working folder for these projects in vault is somewhere else.

Normally VisualStudio copies these files from the working directory to c:\inetpub\wwwroot\.... but during commandline build it does not. Is this a problem because vault is not fully integrated with DevStudio or is it simply a Visual Studio problem? Is there a solution to this?

Thanks
Pawan

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Fri Oct 29, 2004 1:14 pm

Our workaround here is to download the Service files to under our build directory, and then use the IIS AdminScripts to point the Virtual Directory to the build dir.

Code: Select all

c:\InetPub\AdminScripts\stopweb.vbs -a 1
c:\InetPub\AdminScripts\adsutil.vbs DELETE w3svc/1/root/WebService
c:\InetPub\AdminScripts\mkwebdir -w "Default Web Site" -v "WebService","DISKPATHTO\WebService"
c:\InetPub\AdminScripts\chaccess -a w3svc/1/ROOT/WebService +read -write +script +execute
c:\InetPub\AdminScripts\adsutil.vbs APPCREATEPOOLPROC w3svc/1/root/WebService
c:\InetPub\AdminScripts\startweb.vbs -a 1
Then you should just be able to use devenv.exe to compile away.

Post Reply