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 ca开发者_如何学Cn't find such a functionality with it.
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.
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
精彩评论