Hi,
Can you please advise a method to use Vault to handle different releases?
We have two releases. The code are checked in to separate repositories R1 and R2. The application consists of .NET assemblies, Wev Services and web applications. We would like to maintain both releases separately without mixing the code on the dev machine (ie. code of Release1 in C:\R1 and code of R2 in C:\R2). Ideally, the code of web applications must be separated too.
For code maintenance using Visual Studio 2003, we would like to switch back and forth from R1 to R2 easily and without side-effects (change on R1 must not impact R2 code).
Thanks in advance for your help.
Recommendation for handling different releases
Moderator: SourceGear
I think you would just need to define two completely separate working folders for each application, and it should work fine.
The web application might be tricky though if the name of the Virtual Folder needs to be the same in both projects, since you can't have the same virtual folder name in IIS. Perhaps you could define an entirely separate website in IIS, in which case you could probably use the same virtual folder name, but then you'd need to specify the name of the website rather than localhost when accessing it.
The web application might be tricky though if the name of the Virtual Folder needs to be the same in both projects, since you can't have the same virtual folder name in IIS. Perhaps you could define an entirely separate website in IIS, in which case you could probably use the same virtual folder name, but then you'd need to specify the name of the website rather than localhost when accessing it.
True, works OK for assemblies & winForm.dan wrote:I think you would just need to define two completely separate working folders for each application, and it should work fine.
That's is exactly here where we have troubles. Separate website root while keeping same web virtual folder names would be convenient for us. The problem is that our dev machines use WinXP and you can only have ONE webroot.dan wrote:The web application might be tricky though if the name of the Virtual Folder needs to be the same in both projects, since you can't have the same virtual folder name in IIS. Perhaps you could define an entirely separate website in IIS, in which case you could probably use the same virtual folder name, but then you'd need to specify the name of the website rather than localhost when accessing it.
We prefer not to change the virtual folder because that could introduce subtle errors for deployment. Do you think it is viable to get latest + overwrite the content of the web folders each time we work on a release?
When switching between branches of the Vault server that I'm developing, I use a batch file like this:
This batch file deletes the virtual directory and recreates it, pointing to the working folder on disk. This way, I can have a branch at c:\vault\src\service and another at c:\vault20\src\service. Perhaps this will work for you?
Code: Select all
c:\InetPub\AdminScripts\stopweb.vbs -a 1
c:\InetPub\AdminScripts\adsutil.vbs DELETE w3svc/1/root/VaultService
c:\InetPub\AdminScripts\mkwebdir -w "Default Web Site" -v "VaultService","c:\vault\src\service"
c:\InetPub\AdminScripts\chaccess -a w3svc/1/ROOT/VaultService +read -write +script +execute
c:\InetPub\AdminScripts\adsutil.vbs APPCREATEPOOLPROC w3svc/1/root/VaultService
rd /S /Q "c:\documents and settings\jeremy.sourcegear\vswebcache"