diff options
author | Kirill Osenkov <github@osenkov.com> | 2019-01-12 06:20:44 +0300 |
---|---|---|
committer | Kirill Osenkov <github@osenkov.com> | 2019-01-12 06:20:44 +0300 |
commit | db6e21597c3e30c2b9210fe0819bca8a62cbb9e8 (patch) | |
tree | 0784806106c20f1a52306629141c2054201ee0ef /main/msbuild | |
parent | 898a5f9686226ab5bcdee8453ab27355545322ce (diff) |
Fix NuGet arguments in DownloadNupkg.cs.
packages.config needs to come before the -PackagesDirectory argument and the packages directory path can't end with a `\`
Diffstat (limited to 'main/msbuild')
-rw-r--r-- | main/msbuild/MDBuildTasks/DownloadNupkg.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/msbuild/MDBuildTasks/DownloadNupkg.cs b/main/msbuild/MDBuildTasks/DownloadNupkg.cs index 2b9e2e1310..c379252d91 100644 --- a/main/msbuild/MDBuildTasks/DownloadNupkg.cs +++ b/main/msbuild/MDBuildTasks/DownloadNupkg.cs @@ -62,20 +62,20 @@ namespace MDBuildTasks { AppendSpace (); builder.Append ('"'); - builder.Append (text.Replace ("\"", "\\\"")); + builder.Append (text.Replace ("\"", "\\\"").TrimEnd ('\\')); builder.Append ('"'); } Append ("restore"); + AppendQuoted (PackagesConfigFile); + Append ("-PackagesDirectory"); AppendQuoted (PackagesDirectory); //Append ("-PackageSaveMode"); //Append ("nuspec;nupkg"); - AppendQuoted (PackagesConfigFile); - return builder.ToString (); } |