Skip to content

Commit

Permalink
Fix global.json (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarinho authored May 27, 2021
1 parent 57b216b commit f72ea9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if ($IsWindows)
[xml] $xml = Get-Content (Join-Path $PSScriptRoot Versions.props)
$json = Get-Content $globaljson | ConvertFrom-Json
$json | Add-Member sdk (New-Object -TypeName PSObject) -Force
$json.sdk | Add-Member version $xml.Project.PropertyGroup.MicrosoftDotnetSdkInternalPackageVersion -Force
$json.sdk | Add-Member version ([string]$xml.Project.PropertyGroup.MicrosoftDotnetSdkInternalPackageVersion).Trim() -Force
$json | ConvertTo-Json | Set-Content $globaljson

# NOTE: I've not found a better way to do this
Expand Down

0 comments on commit f72ea9d

Please sign in to comment.