Skip to content

Commit a73c08e

Browse files
[release/8.0] Support using MSBuild from xcopy msbuild tool package though VS installation exists (#15971)
Co-authored-by: Gang Wang <[email protected]>
1 parent 6e3320b commit a73c08e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/common/tools.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ function InitializeVisualStudioMSBuild([bool]$install, [object]$vsRequirements =
417417

418418
# Locate Visual Studio installation or download x-copy msbuild.
419419
$vsInfo = LocateVisualStudio $vsRequirements
420-
if ($vsInfo -ne $null) {
420+
if ($vsInfo -ne $null -and $env:ForceUseXCopyMSBuild -eq $null) {
421421
# Ensure vsInstallDir has a trailing slash
422422
$vsInstallDir = Join-Path $vsInfo.installationPath "\"
423423
$vsMajorVersion = $vsInfo.installationVersion.Split('.')[0]

0 commit comments

Comments
 (0)