Tae-Sung Shin
Tae-Sung Shin

Reputation: 20643

adding reference of separated project to more than 50 projects - Visual Studio 2010

We had to separate a class library from core library project. And now, we should add the reference of the new project to the other 50 or something projects in a solution, which is ASP.NET MVC solution if it matters. Is there any way to automate this addition of reference? I have resharper but I can't find such a functionality with it.

Upvotes: 4

Views: 118

Answers (2)

Mrchief
Mrchief

Reputation: 76218

Another way would be to do some sort of search and replace in csproj files using NotePad++ or some other text editor.

You can also take a look at the Powershell console (I think its part of Nuget) and modify your proj files with powershell commands. Take a look here (deals with manipulating references): how to find reference path via *.csproject file

Upvotes: 2

Mitch Wheat
Mitch Wheat

Reputation: 300559

VSCommands 2010 enables you to copy and paste references (as well as several other very useful features). Not quite automated, but much less painful than having to open each project's references and navigating to add ref.

Upvotes: 4

Related Questions