Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Does anyone know if it is possible to set the same setting across multiple projects in a solution (e.g. if I wanted to remove the TRACE symbol from several projects at the same time).

I used to do this using C++ projects in VS2006. I am now trying to do the same thing in VS2010 on an ASP.NET solution and can't figure out how to do it. Seems like a step backwards to me if this functionality has gone.

Kind wishes, Patrick
Posted

When you define your custom configuration section, set its configSource to an external file (whatever.config). This external file should be added to the SOLUTION and not the project. It will appear under "Solution Items". In each project, Add an Existing File, browse to whatever.config, click the dropdown on the Add button and select "Add as Link."

Whatever.config will be a single file you can edit under Solution Items, and it gets copied into each application at compile time.
 
Share this answer
 
 
Share this answer
 
Comments
Patrick Skelton 11-Mar-12 9:34am    
Hi,

Thanks for that. I don't think I was clear in my question. What I am wanting to do is change one of the settings presented in the project Properties page in Visual Studio and have this same change duplicated into the project properties of other projects.

This was possible in VS2006, at least with C++ projects.

It is a bit like in Explorer, if you select multiple files, you could, for example, change them all to Read Only in one go. And if some of the files were Read Only and some weren't, the tick-box on the Properties page would have a tick in it but be a grey colour, to indicate that some items are already Read Only and some are not.


Kind wishes, Patrick

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900