Fix packaging on CI
This commit is contained in:
parent
fcd6764cd1
commit
217dab2016
|
|
@ -146,15 +146,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");
|
||||||
|
|
||||||
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();
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Microsoft.NETCore.App": {
|
"Microsoft.NETCore.App": {
|
||||||
"type": "platform",
|
"type": "platform",
|
||||||
"version": "1.0.1"
|
"version": "1.0.0"
|
||||||
},
|
},
|
||||||
"Microsoft.DotNet.ProjectModel": "1.0.0-rc3-003121",
|
"Microsoft.DotNet.ProjectModel": "1.0.0-rc3-003121",
|
||||||
"Microsoft.DotNet.Cli.Utils": "1.0.0-preview2-003121",
|
"Microsoft.DotNet.Cli.Utils": "1.0.0-preview2-003121",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue