views:

125

answers:

1

I altered a bunch of project files in our solution, to add a reference path to all of them. I didn't realize that Reference Paths are stored in the .user file for the project. Is there a way to store those in the .csproj file, so they can be checked into source control?

+1  A: 

You might try adding the reference as a HintPath, like this:

<Reference Include="MyReference, Version=2.0.3.2, Culture=neutral, processorArchitecture=MSIL">     
  <HintPath>..\..\lib\Whatever\MyReference.dll</HintPath>
</Reference>
Neil Whitaker
This is what I ended up doing, just deleting all of the reference paths, deleting the references, and re-adding the references pointing to the new location (which is what sets the HintPath). Thanks :)
Jonas