I need some help editing a csproj file using PowerShell. I basically need to select a node and alter it.
Example:
<None Include="T4\WebConfigSettingGeneratorScript.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>WebConfigSettingGeneratorScript1.txt</LastGenOutput>
</None>
I need to remove the TextTemplatingFileGenerator attribute from this tag.
I do this kind of thing a lot. I keep around a set of helper functions for manipulating XML files – particular C# project files. Try this out: