diff --git a/brightray/script/build b/brightray/script/build index b13f892b64f0..f337c37615b3 100755 --- a/brightray/script/build +++ b/brightray/script/build @@ -25,7 +25,8 @@ def build(): return subprocess.call(['make']) assert sys.platform == 'win32', sys.platform - msbuild = os.path.join(os.environ['windir'], 'Microsoft.NET', 'Framework', 'v4.0.30319', 'MSBuild.exe') + program_files = os.environ.get('PROGRAMFILES(X86)', os.environ['PROGRAMFILES']) + msbuild = os.path.join(program_files, 'MSBuild', '12.0', 'Bin', 'MSBuild.exe') return subprocess.call([msbuild, 'brightray.sln'])