@@ -32,7 +32,7 @@ public static IEnumerable<VcVarsBatFile> GetCandidateVcVarsFiles(IBuildActions a
3232 yield break ;
3333
3434 // Attempt to use vswhere to find installations of Visual Studio
35- var vswhere = actions . PathCombine ( programFilesx86 , "Microsoft Visual Studio" , "Installer" , "vswhere.exe" ) ;
35+ var vswhere = actions . PathJoin ( programFilesx86 , "Microsoft Visual Studio" , "Installer" , "vswhere.exe" ) ;
3636
3737 if ( actions . FileExists ( vswhere ) )
3838 {
@@ -51,14 +51,14 @@ public static IEnumerable<VcVarsBatFile> GetCandidateVcVarsFiles(IBuildActions a
5151 if ( majorVersion < 15 )
5252 {
5353 // Visual Studio 2015 and below
54- yield return new VcVarsBatFile ( actions . PathCombine ( vsInstallation . InstallationPath , @"VC\vcvarsall.bat" ) , majorVersion ) ;
54+ yield return new VcVarsBatFile ( actions . PathJoin ( vsInstallation . InstallationPath , @"VC\vcvarsall.bat" ) , majorVersion ) ;
5555 }
5656 else
5757 {
5858 // Visual Studio 2017 and above
59- yield return new VcVarsBatFile ( actions . PathCombine ( vsInstallation . InstallationPath , @"VC\Auxiliary\Build\vcvars32.bat" ) , majorVersion ) ;
60- yield return new VcVarsBatFile ( actions . PathCombine ( vsInstallation . InstallationPath , @"VC\Auxiliary\Build\vcvars64.bat" ) , majorVersion ) ;
61- yield return new VcVarsBatFile ( actions . PathCombine ( vsInstallation . InstallationPath , @"Common7\Tools\VsDevCmd.bat" ) , majorVersion ) ;
59+ yield return new VcVarsBatFile ( actions . PathJoin ( vsInstallation . InstallationPath , @"VC\Auxiliary\Build\vcvars32.bat" ) , majorVersion ) ;
60+ yield return new VcVarsBatFile ( actions . PathJoin ( vsInstallation . InstallationPath , @"VC\Auxiliary\Build\vcvars64.bat" ) , majorVersion ) ;
61+ yield return new VcVarsBatFile ( actions . PathJoin ( vsInstallation . InstallationPath , @"Common7\Tools\VsDevCmd.bat" ) , majorVersion ) ;
6262 }
6363 }
6464 // else: Skip installation without a version
@@ -68,10 +68,10 @@ public static IEnumerable<VcVarsBatFile> GetCandidateVcVarsFiles(IBuildActions a
6868 }
6969
7070 // vswhere not installed or didn't run correctly - return legacy Visual Studio versions
71- yield return new VcVarsBatFile ( actions . PathCombine ( programFilesx86 , @"Microsoft Visual Studio 14.0\VC\vcvarsall.bat" ) , 14 ) ;
72- yield return new VcVarsBatFile ( actions . PathCombine ( programFilesx86 , @"Microsoft Visual Studio 12.0\VC\vcvarsall.bat" ) , 12 ) ;
73- yield return new VcVarsBatFile ( actions . PathCombine ( programFilesx86 , @"Microsoft Visual Studio 11.0\VC\vcvarsall.bat" ) , 11 ) ;
74- yield return new VcVarsBatFile ( actions . PathCombine ( programFilesx86 , @"Microsoft Visual Studio 10.0\VC\vcvarsall.bat" ) , 10 ) ;
71+ yield return new VcVarsBatFile ( actions . PathJoin ( programFilesx86 , @"Microsoft Visual Studio 14.0\VC\vcvarsall.bat" ) , 14 ) ;
72+ yield return new VcVarsBatFile ( actions . PathJoin ( programFilesx86 , @"Microsoft Visual Studio 12.0\VC\vcvarsall.bat" ) , 12 ) ;
73+ yield return new VcVarsBatFile ( actions . PathJoin ( programFilesx86 , @"Microsoft Visual Studio 11.0\VC\vcvarsall.bat" ) , 11 ) ;
74+ yield return new VcVarsBatFile ( actions . PathJoin ( programFilesx86 , @"Microsoft Visual Studio 10.0\VC\vcvarsall.bat" ) , 10 ) ;
7575 }
7676
7777 /// <summary>
0 commit comments