Skip to content

Commit

Permalink
Add workaround for dotnet/arcade#13406
Browse files Browse the repository at this point in the history
  • Loading branch information
eerhardt committed May 3, 2023
1 parent 2a133af commit ad1a15b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eng/common/tools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,9 @@ function InitializeVisualStudioMSBuild([bool]$install, [object]$vsRequirements =
# Locate Visual Studio installation or download x-copy msbuild.
$vsInfo = LocateVisualStudio $vsRequirements
if ($vsInfo -ne $null) {
$vsInstallDir = $vsInfo.installationPath
# Needed until we get https://github.com/dotnet/arcade/pull/13406/
# Ensure vsInstallDir has a trailing slash
$vsInstallDir = Join-path $vsInfo.installationPath "\"
$vsMajorVersion = $vsInfo.installationVersion.Split('.')[0]

InitializeVisualStudioEnvironmentVariables $vsInstallDir $vsMajorVersion
Expand Down

0 comments on commit ad1a15b

Please sign in to comment.