title: Updating a *.CSPROJ using MSBUILD API
body: <p>Based on question : <a href="https://stackoverflow.com/questions/4649989/reading-a-csproj-file-in-c">Reading a *.CSPROJ file in C#</a></p>
  
  <p>I have code to extract some properties out of a *.csproj file, along the lines of :</p>
  
  <pre><code>Project project = new Project();
  
  var Property001=
              from pg in project.PropertyGroups.Cast&lt;BuildPropertyGroup&gt;()
              from item in pg.Cast&lt;BuildProperty&gt;()
              where item.Name == "Property001"
              select item.Value.ToString();
  </code></pre>
  
  <p>This works fine, but the next question is how do I update the property using LINQ as well?</p>