What is the best way of getting a previous version from Vault?
I have followed your article Best Practices for Managing Branches (http://support.sourcegear.com/viewtopic.php?t=193).
At the moment I have a website project set up as you recommended but when I try to get open a previous version to do amends it tries to overwrite files in my trunk/src folder. I have set a different path to get the files but all the references within the solution file which I branched to Version 1.0 all point to my current trunk/src.
Do I replicate the structure of my repository and then get the latest version and then modify the solution file with the correct paths to projects and websites??
Many thanks
Cragly
Best practice for getting previous version
Moderator: SourceGear
Have you checked into this article, http://support.sourcegear.com/viewtopic.php?t=1917, that talks about those that had problems with their solution files referencing the wrong branch?
Thanks for that link but the problem I am having is slightly different in that when I add a solution to vault with a web project and then branch it my solution file stays the same and still has all the references to the solution which I have in the trunk/src folder.
Therefore when I open up the branched version from vault it pulls in all the projects from my trunk/src folder as this is what is referenced in the file rather than branches/version1/src.
Do i therefore have to open this solution file seperatly change the references to point to the branches/version1/src on my PC?? Or is there some easier way to accomplish this.
What I would like to do is be able to open and view the webproject from any of the branched versions within vault so that I could work on any bug fixes etc before merging into the current trunk/src folder.
I hope I have not waffled on too much and you understand what I am trying to achieve.
I am starting a new contract next week and want to implement Vault rather than VSS but need to ensure I can get this working as I need it.
Many thanks for your help.
Cragly
Therefore when I open up the branched version from vault it pulls in all the projects from my trunk/src folder as this is what is referenced in the file rather than branches/version1/src.
Do i therefore have to open this solution file seperatly change the references to point to the branches/version1/src on my PC?? Or is there some easier way to accomplish this.
What I would like to do is be able to open and view the webproject from any of the branched versions within vault so that I could work on any bug fixes etc before merging into the current trunk/src folder.
I hope I have not waffled on too much and you understand what I am trying to achieve.
I am starting a new contract next week and want to implement Vault rather than VSS but need to ensure I can get this working as I need it.
Many thanks for your help.
Cragly
Ok, in that case, here is the article you will want. It give details on branching web projects: http://support.sourcegear.com/viewtopic.php?t=194
While I'm thinking of it, you can find a wealth of information in our KB article area that may assist in your evaluation: http://support.sourcegear.com/viewtopic.php?t=792
Many thanks for your swift reply its much appreciated.
I have tried everything again today but its causing me so much headache to get this working.
I create a blank solution in VS2005 and then add a web site to this solution at http://localhost/JobBagWebApp by creating the JobBagWebApp folder under in D:\Visual Studio 2005\Projects\JobBag\trunk\src and setting it to a virtual directory in IIS5.
I then add this solution to Vault in the following location with the JobBag.vssscc and JobBag.sln files in the src folder and the web project in with default.aspx and default.cs in the JobBagWebApp folder.
I then label the files Version1.0 and then branch the src folder to:
I then open up the branched version and follow what you recommend in the following post http://support.sourcegear.com/viewtopic.php?t=194
However I can bind my .sln file no problem but cannot re-bind my JobBagWebApp for love or money. I have tried creating a different virtual directory in IIS5 called http://localhost/JobBagWebAppV1.0 and try binding to this but to no avail.
My directory structure on my PC follows that of my repository in Vault.
It seems like the simples thing to do but somehow I cannot get it to work even thought I have followed your posts.
Any help would be much appreciated.
Thanks
Cragly
I have tried everything again today but its causing me so much headache to get this working.
I create a blank solution in VS2005 and then add a web site to this solution at http://localhost/JobBagWebApp by creating the JobBagWebApp folder under in D:\Visual Studio 2005\Projects\JobBag\trunk\src and setting it to a virtual directory in IIS5.
I then add this solution to Vault in the following location with the JobBag.vssscc and JobBag.sln files in the src folder and the web project in with default.aspx and default.cs in the JobBagWebApp folder.
Code: Select all
$
--JobBag
--branches
--trunk
--src
--JobBagWebApp
Code: Select all
$
--JobBag
--branches
--Version1.0
--src
--JobBagWebApp
However I can bind my .sln file no problem but cannot re-bind my JobBagWebApp for love or money. I have tried creating a different virtual directory in IIS5 called http://localhost/JobBagWebAppV1.0 and try binding to this but to no avail.
My directory structure on my PC follows that of my repository in Vault.
It seems like the simples thing to do but somehow I cannot get it to work even thought I have followed your posts.
Any help would be much appreciated.
Thanks
Cragly