Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Project reference path in source control?

during development of our application we use a branching structure and while we are developing another team is using earlier builds of our software to create content with it.

To facilitate easy swapping between builds and teams I was hoping to use empty Hintpaths in the content projects' csproj files so that they can use our GAC installed assemblies to build against and in the meantime add a reference path to the projects for our use during development and test cycles where we don't want any assemblies installed in the GAC.

However, it seems reference paths are not stored in the csproj file and thus don't get sourcecontrolled. Since there will be extensive branching it would be less than ideal to have to set all reference paths again when a developer pulls another branch from sourcecontrol.

I've been searching for a bit now and can't seem to find ways to do this. Anybody know of a way to force the reference path in and out of sourcecontrol?

We're talking Visual Studio 2008 and TFS 2008 here.

Cheers, Anton.

like image 255
Anton Avatar asked Feb 03 '23 03:02

Anton


1 Answers

Ok, I seem to be a little clearer in the head after a good night's sleep, took the logical step, namely investigate where exactly the information was stored and how. It turned out the information was stored in the .user file for the project in the project's folder and as it turens out this file contains mbsuild xml.

I then did what I wanted as follows:

  • Create the Reference path as I required it to facilitate both scenarios without any work.
  • Browse to the Project's .user file
  • Copy the PropertyGroup containing the ReferencePath
  • Paste the PropertyGroup in all the necessary Projects' .csproj xml.
  • Reload and build.

Done.

like image 144
Anton Avatar answered Feb 07 '23 12:02

Anton