Public/VS/Remove-ProjectLicenseFile.ps1
function Remove-ProjectLicenseFile { [CmdletBinding()] param ( [parameter(Mandatory)] [xml]$CSProj ) begin { } process { $CSProj.Project.ItemGroup.EmbeddedResource | ForEach-Object { if ($_.Include -eq "Properties\licenses.licx") { $_.parentnode.RemoveChild($_) | out-null } } } end { } } |