0

My question is very simple. How to change the source control binding of a solution (or Project) that I have at my local machine (C:\ or somewhere), not through Visual Studio UI but through C# code. Is there any library for that?

I know there is a SourceSafeType library which I used for automating a whole bunch of other tasks on VSS, but I couldn't find any API for changing source binding of a solution or a project

Bhagirath N Sai
  • 199
  • 4
  • 16
  • Can you explain more about your usage scenario? Why do you need to chang the source binding through code? – Rachel Apr 01 '15 at 05:20
  • We have a manual process where after every major market release, we create a branch for the next release cycle. And we have local copies for each cycle. So when creating the new branch I "Get Latest" from old one to a local location and then put it back in VSS again. So for all the solutions I have to change the binding manually. Hence I want to automate it – Bhagirath N Sai Apr 01 '15 at 16:39

1 Answers1

0

Did you try the steps like below? I think this would be easier for you to manage the code versions.

  1. After a major release, create a branch for your solution in VSS Explorer.

  2. In Visual Studio, use Open from Source Control command to connect to your new branch and retrieve it.

  3. You can then work on the new branch for future dev.

Rachel
  • 1,372
  • 1
  • 8
  • 11