I have inherited a C# application, it is made up of 4 solution files each with 92 projects under each solution file.
I am looking for an easy way to change all the Build Output Path’s of each project to a common directory when I manually build the solutions.
If someone knows of either a macro that will iterate through each project and change the path, or if there is a way to create a global environment variable which will override all the projects’ variables, or any other way, I will really appreciate the help.
Please note that I am NOT using a build server, and that I would like to accomplish this for when I do a manual build on the solution in visual studio.
Many thanks in advance.
Install a decent text editor, if you do not already have one. Something like Notepad++. The editor will need to be able to open multiple files at once.
Go to the parent solution directory in My Computer.
Enter "*.csproj" (or "*.vbproj") in the search bar to be able to open all project files in sub-directories at one time.
Open your text editor, like Notepad++
Drag all project files into the editor to open them
Look for the
<OutputPath>...</OutputPath>line and perform a find and replace in all open documents, replacing the path(s) that are there with the path you want.