Updating a *.CSPROJ using MSBUILD API.
- by BENBUN Coder
Based on question : Reading a *.CSPROJ file in C#
I have code to extract some properties out of a *.csproj file, along the lines of :
Project project = new Project();
var Property001=
from pg in project.PropertyGroups.Cast<BuildPropertyGroup>()
from item in pg.Cast<BuildProperty>()
where item.Name == "Property001"
select item.Value.ToString();
This works fine, but the next question is how do I update the property using LINQ as well?