We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 146674c commit b8ff2c8Copy full SHA for b8ff2c8
Build-Release.ps1
@@ -51,19 +51,9 @@ else {
51
mv "$dir\$file" $vswhere
52
}
53
54
- $MSBuild = &$vswhere -latest -products * -requires Microsoft.Component.MSBuild -property installationPath
55
- #TO get this working with pre-release use:
56
- #$MSBuild = &$vswhere -prerelease -property installationPath
57
-
58
- if ($MSBuild) {
59
60
- $MSBuild = join-path $MSBuild 'MSBuild\15.0\Bin\MSBuild.exe'
61
62
- #$MSBuild = join-path $MSBuild 'MSBuild\Current\Bin\MSBuild.exe'
63
64
- if (-not (test-path $msbuild)) {
65
- throw "MSBuild not found!"
66
- }
+ $MSBuild = &$vswhere -latest -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe | select-object -first 1
+ if (-not (test-path $MSBuild)) {
+ throw "MSBuild not found!"
67
68
69
0 commit comments