diff --git a/tools/hMSBuild.bat b/tools/hMSBuild.bat index e75dc37..228f191 100644 --- a/tools/hMSBuild.bat +++ b/tools/hMSBuild.bat @@ -1,7 +1,7 @@ @echo off -:: hMSBuild - 2.0.0.61507 [ a40c6ac ] -:: Copyright (c) 2017-2018 Denis Kuzmin [ entry.reg@gmail.com ] -:: https://github.com/3F/hMSBuild +:: hMSBuild - 2.1.0.26714 [ 4b368c9 ] +:: Copyright (c) 2017-2019 Denis Kuzmin [ entry.reg@gmail.com ] GitHub/3F +:: Copyright (c) the hMSBuild contributors set "aa=%~dp0" set ab=%* if not defined ab setlocal enableDelayedExpansion & goto bs @@ -13,7 +13,7 @@ set "ad=^" set "ac=!ac:%%=%%%%!" set "ac=!ac:&=%%ad%%&!" :bs -set "ae=2.5.2" +set "ae=2.6.7" set af=%temp%\hMSBuild_vswhere set "ag=" set "ah=" @@ -34,10 +34,11 @@ call :bu bn ac bo goto bv :bw echo. -@echo hMSBuild - 2.0.0.61507 [ a40c6ac ] -@echo Copyright (c) 2017-2018 Denis Kuzmin [ entry.reg@gmail.com ] :: github.com/3F +@echo hMSBuild - 2.1.0.26714 [ 4b368c9 ] +@echo Copyright (c) 2017-2019 Denis Kuzmin [ entry.reg@gmail.com ] GitHub/3F +@echo Copyright (c) the hMSBuild contributors echo. -echo Distributed under the MIT license +echo Licensed under the MIT License @echo https://github.com/3F/hMSBuild echo. @echo. @@ -54,7 +55,7 @@ echo -vsw-priority {IDs} - Non-strict components preference: C++ etc. echo Separated by space: https://aka.ms/vs/workloads echo. echo -vsw-version {arg} - Specific version of vswhere. Where {arg}: -echo * 1.0.50 ... +echo * 2.5.2 ... echo * Keywords: echo `latest` - To get latest remote version; echo `local` - To use only local versions; @@ -81,7 +82,7 @@ echo. echo -------- echo Samples: echo -------- -echo hMSBuild -notamd64 -vsw-version 1.0.50 "Conari.sln" /t:Rebuild +echo hMSBuild -notamd64 -vsw-version 2.5.2 "Conari.sln" /t:Rebuild echo hMSBuild -vsw-version latest "Conari.sln" echo. echo hMSBuild -no-vswhere -no-vs -notamd64 "Conari.sln" @@ -161,7 +162,7 @@ call :b2 "selected vswhere version:" v set ao=1 goto b1 ) else if [!av!]==[-version] ( -@echo 2.0.0.61507 [ a40c6ac ] +@echo 2.1.0.26714 [ 4b368c9 ] goto by ) else if [!av!]==[-vsw-priority] ( set /a "au+=1" & call :b4 bn[!au!] v set ap=!v! @@ -330,6 +331,8 @@ set "%3=" & exit/B 3 for /F "tokens=1,2 delims=." %%a in ("!a_!") do ( set a_=%%~a.0 ) +if !a_! geq 16 set a_=Current +if not exist "!a9!\MSBuild\!a_!\Bin" set "%3=" & exit/B 3 set bb=!a9!\MSBuild\!a_!\Bin call :b2 "found path via vswhere: " bb if exist "!bb!\amd64" ( @@ -381,7 +384,7 @@ if not defined ag ( exit/B 0 ) set bc=!bb:Framework64=Framework! -set bc=!bc:amd64=! +set bc=!bc:\amd64=! if exist "!bc!" ( call :b2 "Return 32bit version because of -notamd64 key." set %2=!bc! @@ -507,5 +510,5 @@ set a=PropertyGroup&set b=Condition&set c=ngpackages&set d=Target&set e=DependsO ^