File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ Function Get-PackageVersions() {
7070 }
7171
7272 $propsPath = (Resolve-Path - LiteralPath (Join-Path $PSScriptRoot ' ..\Directory.Packages.props' )).Path
73- $output = & dotnet build $propsPath - nologo - verbosity:quiet - getItem:PackageVersion 2>&1
73+ $output = & dotnet msbuild $propsPath - nologo - verbosity:quiet - getItem:PackageVersion 2>&1
7474 if ($LASTEXITCODE -ne 0 ) {
7575 Write-Error " Failed to evaluate package versions from Directory.Packages.props.`n $ ( $output | Out-String ) "
7676 return @ {}
@@ -79,7 +79,7 @@ Function Get-PackageVersions() {
7979 $jsonText = ($output | Out-String ).Trim()
8080 $jsonStart = $jsonText.IndexOf (' {' )
8181 if ($jsonStart -lt 0 ) {
82- Write-Error ' Failed to locate JSON output from `dotnet build -getItem:PackageVersion`.'
82+ Write-Error ' Failed to locate JSON output from `dotnet msbuild -getItem:PackageVersion`.'
8383 return @ {}
8484 }
8585
You can’t perform that action at this time.
0 commit comments