diff --git a/CI/job_templates/deploy_drawing_libraries.yml b/CI/job_templates/deploy_drawing_libraries.yml index 1cdcc25..2cb9f6c 100644 --- a/CI/job_templates/deploy_drawing_libraries.yml +++ b/CI/job_templates/deploy_drawing_libraries.yml @@ -68,11 +68,17 @@ jobs: symbolServerType: TeamServices detailedLog: true # Store Version Information - - task: file-creator@6 + # Built-in PowerShell instead of the marketplace file-creator@6 task, which runs on Node 10 and fails on + # current hosted agents ("No compatible Node.js version available for host execution"). + - task: PowerShell@2 displayName: Store Version Information inputs: - filepath: 'VersionInformation/versions.xml' - filecontent: | + targetType: 'inline' + pwsh: true + script: | + # Single-quoted: Azure DevOps substitutes the $(...) macros before the script runs; anything it + # leaves undefined is written literally, as the old task did, instead of being run by PowerShell. + $content = @' $(Configuration) @@ -80,8 +86,10 @@ jobs: $(AssemblyVersion) $(Build.SourceVersion) - fileoverwrite: true - verbose: true + '@ + New-Item -ItemType Directory -Force -Path 'VersionInformation' | Out-Null + Set-Content -Path 'VersionInformation/versions.xml' -Value $content -Encoding utf8NoBOM + Get-Content 'VersionInformation/versions.xml' - task: PublishBuildArtifacts@1 displayName: Publish IronDrawing Version Information inputs: