Closed petero-dk closed 4 months ago
Describe the issue A clear and concise description of what the issue is.
Extension
To Reproduce Steps to reproduce the behavior:
Expected behavior A variable that contains a nice multi line string
Situation (please complete the following information):
I managed to fix it by loading the file via a powershell script instead, the script looks like this.
# Read the contents of the file into a variable $fileContent = Get-Content -Path "$(System.DefaultWorkingDirectory)/ReleaseNotes.md" -Raw # Set the file content as a pipeline variable $fileContent = $fileContent -replace "`r", "" $fileContent = $fileContent -replace "`n", "%0D%0A" Write-Host "##vso[task.setvariable variable=ReleaseNotes2]$fileContent" # Print the file content (optional) Write-Output "File Content: $fileContent" Write-Output "Done"
@petero-dk: What was your configuration of the task?
It looks like there hasn't been a reply in 30 days, so I'm closing this issue.
Describe the issue A clear and concise description of what the issue is.
Extension
To Reproduce Steps to reproduce the behavior:
Expected behavior A variable that contains a nice multi line string
Situation (please complete the following information):
I managed to fix it by loading the file via a powershell script instead, the script looks like this.