From 3d73baedd01e331259a9be1795cd83ad81f71652 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 11 Feb 2019 12:31:39 +0300 Subject: h++: make.bat teached to find a path to MSBuild.exe itself --- plugins/HistoryPlusPlus/make.bat | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'plugins/HistoryPlusPlus') diff --git a/plugins/HistoryPlusPlus/make.bat b/plugins/HistoryPlusPlus/make.bat index ff67906b34..3fe1b6b310 100644 --- a/plugins/HistoryPlusPlus/make.bat +++ b/plugins/HistoryPlusPlus/make.bat @@ -5,4 +5,13 @@ if "%tp%"=="" (echo "please specify target platform 32 or 64!" && pause && goto rc version.rc +for /F "tokens=1,2,3" %%i in ('reg.exe query "HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0" /v MSBuildToolsPath') do call :SetPath %%i %%j %%k +echo Using .NET Framework Directory '%FrameworkDir%' +set PATH=%FrameworkDir%;%PATH% + MsBuild.exe historypp.dproj /t:Rebuild /p:Configuration=Release;Platform=Win%tp% /fileLogger /fileLoggerParameters:LogFile=Logs\icons%tp%.log;errorsonly;warningsonly;summary +goto :eof + +:SetPath +if "%2" == "REG_SZ" set FrameworkDir="%3" +goto :eof -- cgit v1.2.3