specify build action of content - Nuget specify build action of content - Nuget powershell powershell

specify build action of content - Nuget


You can use DTE instead of messing with xml to change the BuildAction. From http://nuget.codeplex.com/discussions/227696:

$item = $project.ProjectItems | where-object {$_.Name -eq "ReleaseNotes.txt"} $item.Properties.Item("BuildAction").Value = [int]3

This link shows the enumeration values:http://msdn.microsoft.com/en-us/library/aa983962(VS.71).aspx