update the json output encoding

This commit is contained in:
RaidMax 2019-12-09 14:01:02 -06:00
parent e5d009d87d
commit b3f4712dd2
2 changed files with 6 additions and 1 deletions

View File

@ -20,4 +20,4 @@ Minor = $versionInfo.ProductMinorPart
Build = $versionInfo.ProductBuildPart
Revision = $versionInfo.ProductPrivatePart
}
$json | ConvertTo-Json > ("{0}\VersionInformation.json" -f $PublishDir)
$json | ConvertTo-Json -Encoding ASCII > ("{0}\VersionInformation.json" -f $PublishDir)

View File

@ -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: