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

Popular posts from this blog

python - Best design pattern for collection of objects -

go - serving up pdfs using golang -

python - django admin: changing the way a field (w/ relationship to another model) is submitted on a form so that it can be submitted multiple times -