Pack with NuGet 3.5.0 RTM

This commit is contained in:
Nate McMaster 2016-11-28 16:39:14 -08:00
parent e5c4e96705
commit f63006dc1a
1 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ namespace NuGetPackager
props += $";dep_{++idx}={depVersion}"; props += $";dep_{++idx}={depVersion}";
} }
var buildCommand = Command.CreateDotNet("build", var buildCommand = Command.CreateDotNet("build",
new[] { project.ProjectFile.ProjectFilePath, "--configuration", config }, new[] { project.ProjectFile.ProjectFilePath, "--configuration", config },
configuration: config); configuration: config);
@ -129,15 +129,15 @@ namespace NuGetPackager
return Environment.GetEnvironmentVariable("KOREBUILD_NUGET_EXE"); return Environment.GetEnvironmentVariable("KOREBUILD_NUGET_EXE");
} }
var nugetPath = Path.Combine(_baseDir, ".build", "nuget.3.5.0-rc1.exe"); var nugetPath = Path.Combine(_baseDir, ".build", "nuget.3.5.0.exe");
if (File.Exists(nugetPath)) if (File.Exists(nugetPath))
{ {
return nugetPath; return nugetPath;
} }
Console.WriteLine("log : Downloading nuget.exe 3.5.0-rc1".Bold().Black()); Console.WriteLine("log : Downloading nuget.exe 3.5.0".Bold().Black());
var response = await new HttpClient().GetAsync("https://dist.nuget.org/win-x86-commandline/v3.5.0-rc1/NuGet.exe"); var response = await new HttpClient().GetAsync("https://dist.nuget.org/win-x86-commandline/v3.5.0/NuGet.exe");
using (var file = new FileStream(nugetPath, FileMode.CreateNew)) using (var file = new FileStream(nugetPath, FileMode.CreateNew))
{ {
response.EnsureSuccessStatusCode(); response.EnsureSuccessStatusCode();