Adding a selected project link to more than 50 projects - Visual Studio 2010

We had to separate the class library from the main library project. And now we have to add a link to a new project to another 50 or something in the project, an ASP.NET MVC solution, if that matters. Is there a way to automate this link adding? I have a resharper, but I can not find such functionality with it.

+4
source share
2 answers

VSCommands 2010 allows you to copy and paste links (as well as several other very useful features). Not entirely automated, but much less painful than opening links to each project and navigating to add a link.

+4
source

Another way is to do some kind of search and replace in csproj files using NotePad ++ or another text editor.

You can also look at the Powershell console (I think it's part of Nuget) and modify your proj files using powershell commands. Take a look here (handles link manipulation): how to find the link path through the * .csproject file

+2
source

All Articles