diff --git a/scripts/modules.ps1 b/scripts/modules.ps1 index 0116e5fc8..f0430ddc4 100644 --- a/scripts/modules.ps1 +++ b/scripts/modules.ps1 @@ -99,8 +99,8 @@ New-Module -ScriptBlock { New-Module -ScriptBlock { function Find-MSBuild() { - if (Test-Path "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe") { - $msbuild = "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" + if (Test-Path "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin\MSBuild.exe") { + $msbuild = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin\MSBuild.exe" } elseif (Test-Path "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe") { $msbuild = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe"