From ab56c43425b07661844cb715cc9a51ef04679f18 Mon Sep 17 00:00:00 2001 From: reg Date: Mon, 27 Jun 2016 23:35:28 +0300 Subject: [PATCH] FIXED: error MSB4018 `Value cannot be null`, if the `/p:wpath` key is not defined. --- changelog.txt | 3 +++ gnt.core | 13 +++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/changelog.txt b/changelog.txt index 956ea42..c597d40 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,9 @@ GetNuTool ____________________ +[v1.5] + * FIXED: error MSB4018 `Value cannot be null`, if the `/p:wpath` key is not defined. + [v1.4] * NEW: Added `/p:wpath` key to define working directory. * NEW: Support of executable package. diff --git a/gnt.core b/gnt.core index fbc2615..8d7f328 100644 --- a/gnt.core +++ b/gnt.core @@ -72,7 +72,7 @@ var output = pkg.Attribute("output"); if(id == null) { - throw new ArgumentException(String.Format("Attribute - 'id' is not found in '{0}'", cfg)); + throw new ArgumentException(String.Format("Not found: 'id' in '{0}'", cfg)); } var link = id.Value; @@ -97,7 +97,7 @@ } if(ret.Count < 1) { - throw new FileNotFoundException("List of packages is empty. Use packages.config or property like /p:ngpackages=\"...\""); + throw new FileNotFoundException("List of packages is empty. Use .config or /p:ngpackages=\"...\""); } Result = String.Join(";", ret.ToArray()); @@ -141,7 +141,7 @@ { string output = Path.GetFullPath(loc(path ?? name)); if(Directory.Exists(output)) { - Console.WriteLine("The `{0}` is already exists. /pass -> `{1}`", name, output); + Console.WriteLine("`{0}` is already exists. /pass `{1}`", name, output); return; } Console.Write("Getting `{0}` ... ", link); @@ -162,7 +162,7 @@ } var dest = Path.Combine(output, uri.TrimStart('/')); - dbg("-> `{0}`", uri); + dbg("- `{0}`", uri); var dir = Path.GetDirectoryName(dest); if(!Directory.Exists(dir)) { @@ -306,7 +306,7 @@ else { pUri = file; } - dbg("-> `{0}`", pUri); + dbg("- `{0}`", pUri); // to protect path without separators var escaped = String.Join("/", pUri.Split('\\', '/').Select(p => Uri.EscapeDataString(p))); @@ -344,7 +344,8 @@ - 1.4 + 1.5 + $(MSBuildProjectDirectory)