Skip to content

Commit 44ed582

Browse files
committed
Use dotnet msbuild for -getItem parameters
1 parent 4738c2b commit 44ed582

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/Get-ExternalSymbolFiles.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)