Skip to content

Instantly share code, notes, and snippets.

@vmeln
Created April 1, 2014 12:25
Show Gist options
  • Save vmeln/9912913 to your computer and use it in GitHub Desktop.
Save vmeln/9912913 to your computer and use it in GitHub Desktop.
@echo off
set builderPath = reg.exe query "HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0" /v MSBuildToolsPath
FOR /F "tokens=2*" %%A IN ('reg.exe query "HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0" /v MSBuildToolsPath') DO SET filePath=%%B
"%filePath%\msbuild" "%1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment