I want to remove the following text in my .csproj files
<EmbeddedResource Include="Properties\licenses.licx" />.
So in other words replace with ' '. I have tried the following
$c = (($_ | Get-Content)) | Out-String
if ($c.Contains("<EmbeddedResource Include=""Properties\licenses.licx"" />"))
{
$c = $c -replace "<EmbeddedResource Include=""Properties\licenses.licx"" />",""
It says The regular expression pattern is not valid. How can i set regular expressions here ?