c# - Changing csproj file in open project without reloading -
i'm making addin visualstudio(2015).
i want change .csproj file in opened project code have reload project.
is there way without reloading, special vs tools change project properties?
my code:
var collection = new projectcollection(); collection.defaulttoolsversion = "4.0"; var project = collection.loadproject(@"..\..\myproject.csproj"); var group = project.xml.addpropertygroup(); group.label = "mygroup"; group.addproperty(myname, "myvalue"); project.save();
Comments
Post a Comment