Skip to content

Commit 72270b1

Browse files
committed
Explicitly specify msbuild from the .Net 4.0 framework directory
1 parent bf4983b commit 72270b1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ $WorkingDir = split-path -parent $MyInvocation.MyCommand.Definition
1414

1515
$CefSln = Join-Path $WorkingDir 'CefSharp3.sln'
1616

17+
$MSBuildExe = join-path -path (Get-ItemProperty "HKLM:\software\Microsoft\MSBuild\ToolsVersions\4.0").MSBuildToolsPath -childpath "msbuild.exe"
18+
$MSBuildExe = $MSBuildExe -replace "Framework64", "Framework"
19+
1720
function Write-Diagnostic
1821
{
1922
param(
@@ -162,7 +165,7 @@ function Msvs
162165
)
163166

164167
$StartInfo = New-Object System.Diagnostics.ProcessStartInfo
165-
$StartInfo.FileName = "msbuild.exe"
168+
$StartInfo.FileName = $MSBuildExe
166169
$StartInfo.Arguments = $Arguments
167170

168171
$StartInfo.EnvironmentVariables.Clear()

0 commit comments

Comments
 (0)