Does Visual Studio provide any classes that can be used to load a project ( .vcprojfile) and change some of its properties?
Currently, our solution has about 70 projects, of which 60 are Visual C ++. I would like to experiment with some settings (optimizing on / off, changing binding settings, etc.). Unfortunately, the .vsprops file is not suitable for this purpose, since for some projects some โmanualโ values โโ(not โinheritedโ) are often set for historical reasons.
Is there any class with which I can load the project and use it? How (on my head):
using Microsoft.VisualStudio;
Project project = Project.Load("MyProject.vcproj");
project.Configurations["Debug"].CompilerSettings.OptimizationLevel = OptimizationLevel.Full;
Having such a class will allow me to quickly draw C # โscriptsโ using LINQPad to test various configurations.
source
share