Skip to content

Commit

Permalink
Check vstest.console.dll instead of .exe (#5149)
Browse files Browse the repository at this point in the history
  • Loading branch information
nohwnd authored Jul 22, 2024
1 parent 4af0f0d commit 1fcc717
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions eng/verify-nupkgs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,10 @@ function Verify-NugetPackageVersion {
$UnzipNugetPackages
)

$exes = $UnzipNugetPackages | Get-ChildItem -Filter vstest.console.exe -Recurse -Force
if (0 -eq @($exes).Length) {
throw "No vstest.console.exe was found."
# look for vstest.console.dll because unified build for .NET does not produce vstest.console.exe
$exes = $UnzipNugetPackages | Get-ChildItem -Filter vstest.console.dll -Recurse -Force
if (0 -eq @($exes).Length) {
throw "No vstest.console.dll files were found."
}

$exes | ForEach-Object {
Expand Down

0 comments on commit 1fcc717

Please sign in to comment.