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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -