trying to change the AssemblyName of an .Net project file inside Azure Pipeline. Reason is to have a special name of the process. Would like to use PowerShell for this. I tried this:
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
[xml]$xml =(gc "src/WaWiXPO/WaWiXPO.csproj")
Write-Host $xml.Project.PropertyGroup[0].AssemblyName
$xml.Project.PropertyGroup[0].AssemblyName = "WaWiDEV"
$xml.Save("WaWiXPO.csproj")
Locally it is working fine, but in the pipeline, it does no change. No error message. Any ideas?