From df760827f1564e8fe1aadd736feadf539f9a7281 Mon Sep 17 00:00:00 2001 From: "Denis Kuzmin [ GitHub/3F ]" Date: Thu, 16 Jan 2020 19:35:49 +0300 Subject: [PATCH] Public release. GetNuTool 1.8 * CHANGED: Changed `%~dp0` to `%cd%` processing for the following in batch version by default: `wpath` property `-unpack` key For some cases you need to update the use of the batch version in your code. Do not hesitate to contact if you have the questions: https://github.com/3F/GetNuTool * CHANGED: Trims whitespaces in optional proxycfg property. Helps to avoid MSB1006 problem for 3rd tools which was based on gnt batch version. That is, ~ /p:proxycfg=" !proxy! " will be safely considered as optional value While /p:proxycfg="" will indicate about incorrect or missing data. * FIXED: Fixed post actions when executing gnt core in batch version. * FIXED: "The remote server returned an error: (407) Proxy Authentication Required." Related issue: https://github.com/3F/DllExport/issues/133 * NOTE: Official releases via GitHub Releases: https://github.com/3F/GetNuTool/releases/latest * NOTE: About possible commands and keys: https://github.com/3F/GetNuTool#commands --- .version | 2 +- .vssbe | 33 +++++++++++++-------------------- caller/gnt.bat | 7 +++++-- changelog.txt | 33 ++++++++++++++++++++++++++++++++- 4 files changed, 51 insertions(+), 24 deletions(-) diff --git a/.version b/.version index 9dbb0c0..afa2b35 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -1.7.0 \ No newline at end of file +1.8.0 \ No newline at end of file diff --git a/.vssbe b/.vssbe index 5a37ea9..d33774f 100644 --- a/.vssbe +++ b/.vssbe @@ -134,34 +134,27 @@ "$type": "net.r_eg.vsSBE.Events.ModeScript, vsSolutionBuildEvent", "Type": "Script", "Command__": [ - "#[IO copy.file(\"$(dobj)core\", \"$(odir)core/gnt.core\", true)]", - "#[IO copy.file(\"$(dobj)gnt.min.core\", \"$(odir)core-minified/gnt.core\", true)]", - "#[IO copy.file(\"$(dobj)gnt.bat\", \"$(odir)versions/01. executable/gnt.bat\", true)]", - "#[IO copy.file(\"$(dobj)gnt.bat.map\", \"$(odir)versions/01. executable/gnt.bat.map\", true)]", + "#[IO copy.file(\"$(dobj)gnt.min.core\", \"$(odir)core/gnt.core\", true)]", "", - "#[IO copy.file({", - " \"$(odir)core-minified/gnt.core\", ", - " \"caller/gnt.bat\"", - " }, ", - " \"$(odir)versions/02. wrapper/\", true)]", + "##[IO copy.file(\"$(dobj)core\", \"$(odir)core/gnt.core\", true)]", + "##[IO copy.file(\"$(dobj)gnt.min.core\", \"$(odir)core-minified/gnt.core\", true)]", "", - "#[IO copy.file(\"README.md\", \"$(odir)doc/Readme.md\", true)]", + "#[IO copy.file(\"$(dobj)gnt.bat\", \"$(odir)executables/batch/gnt.bat\", true)]", + "#[IO copy.file(\"$(dobj)gnt.bat.map\", \"$(odir)maps/gnt.bat.map\", true)]", "", - "#[IO write(\"$(odir)msbuild.bat\"):@echo off", + "#[IO copy.file({\"caller/gnt.bat\"}, \"$(odir)wrappers/batch/\", true)]", + "", + "#[IO copy.file(\"README.md\", \"$(odir)Readme.md\", true)]", + "", + "##[IO write(\"$(odir)msbuild.bat\"):@echo off", "echo.", - "echo The MSBuild-helper from GetNuTool is obsolete and was replaced by hMSBuild project.", + "echo MSBuild-helper from GetNuTool is obsolete and was replaced by hMSBuild project.", "echo Please look here: https://github.com/3F/hMSBuild", "echo.", "pause", "]", "", - "#[IO copy.file(\"changelog.txt\", \"$(odir)doc/\", true)]", - "", - "##[IO copy.file({", - " \"msbuild.bat\",", - " \"LICENSE\"", - " },", - " \"$(odir)\", true)]", + "#[IO copy.file({ \"changelog.txt\", \".version\", \".gitattributes\" }, \"$(odir)\", true)]", "", "#[IO copy.file(\"LICENSE\", \"$(odir)License.txt\", true)]" ] @@ -182,7 +175,7 @@ "Command__": [ "#[7z pack.directory(\"$(dbin)raw\", \"$(dbin)GetNuTool.$(pVerPrintFile).zip\")]", "", - "#[IO copy.file(\"$(odir)versions/01. executable/gnt.bat\", \"$(dbin)gnt.bat\", true)]" + "#[IO copy.file(\"$(odir)executables/batch/gnt.bat\", \"$(dbin)gnt.bat\", true)]" ] } } diff --git a/caller/gnt.bat b/caller/gnt.bat index d06623d..abc6939 100644 --- a/caller/gnt.bat +++ b/caller/gnt.bat @@ -3,7 +3,8 @@ :: Copyright (c) 2015-2018,2020 Denis Kuzmin [ x-3F@outlook.com ] :: https://github.com/3F/GetNuTool -set gntcore=gnt.core +set gntcore=.\gnt.core +if not exist %gntcore% goto error for %%v in (4.0, 14.0, 12.0, 3.5, 2.0) do ( for /F "usebackq tokens=2* skip=2" %%a in ( @@ -14,7 +15,9 @@ for %%v in (4.0, 14.0, 12.0, 3.5, 2.0) do ( ) ) -echo MSBuild was not found. Try manually: msbuild %gntcore% {arguments}` 1>&2 +:error +echo MSBuild or %gntcore% was not found. Try manually: msbuild %gntcore% {arguments}` 1>&2 + exit /B 2 :found diff --git a/changelog.txt b/changelog.txt index 00ea797..199b823 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,37 @@ -GetNuTool :: https://github.com/3F/GetNuTool +GetNuTool - https://github.com/3F/GetNuTool - - - - - +[v1.8] 2020.01.16 + + * CHANGED: Changed `%~dp0` to `%cd%` processing for the following in batch version by default: + + `wpath` property + `-unpack` key + + For some cases you need to update the use of the batch version in your code. + Do not hesitate to contact if you have the questions: + https://github.com/3F/GetNuTool + + * CHANGED: Trims whitespaces in optional proxycfg property. + + Helps to avoid MSB1006 problem for 3rd tools which was based on gnt batch version. + That is, + + ~ /p:proxycfg=" !proxy! " will be safely considered as optional value + While /p:proxycfg="" will indicate about incorrect or missing data. + + * FIXED: Fixed post actions when executing gnt core in batch version. + + * FIXED: "The remote server returned an error: (407) Proxy Authentication Required." + + Related issue: https://github.com/3F/DllExport/issues/133 + + * NOTE: Official releases via GitHub Releases: + https://github.com/3F/GetNuTool/releases/latest + + * NOTE: About possible commands and keys: https://github.com/3F/GetNuTool#commands + + [v1.7] 2018.12.22 * NEW: New logic to specify multiple packages and config files via delimiters.