From 998981d54e9f766f427eefb8da334848ac741f54 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Mon, 9 Dec 2019 14:01:02 -0600 Subject: [PATCH] update the json output encoding --- PostPublish.ps1 | 2 +- azure-pipelines.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/PostPublish.ps1 b/PostPublish.ps1 index 46620097..dba281d5 100644 --- a/PostPublish.ps1 +++ b/PostPublish.ps1 @@ -20,4 +20,4 @@ Minor = $versionInfo.ProductMinorPart Build = $versionInfo.ProductBuildPart Revision = $versionInfo.ProductPrivatePart } -$json | ConvertTo-Json > ("{0}\VersionInformation.json" -f $PublishDir) \ No newline at end of file +$json | ConvertTo-Json -Encoding ASCII > ("{0}\VersionInformation.json" -f $PublishDir) \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1989c899..4bb505bc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -63,6 +63,11 @@ steps: failOnStderr: true workingDirectory: '$(Build.Repository.LocalPath)' +- task: oneLuckiDevJson2Variable@1 + inputs: + jsonFile: '$(outputFolder)\VersionInformation.json' + shouldPrefixVariables: true + variablePrefix: 'VersionInformation' - task: BatchScript@1 inputs: