There was an error while loading. Please reload this page.
1 parent 7cbed57 commit 96391f1Copy full SHA for 96391f1
Build/Nuke/Build.cs
@@ -83,9 +83,8 @@ partial class Build : Nuke.Common.NukeBuild
83
var ps1File = ResultDirectory / "donet-install.ps1";
84
using (var client = new HttpClient())
85
{
86
- using var s = client.GetStreamAsync(@"https://dot.net/v1/dotnet-install.ps1");
87
- using var fs = new FileStream(ps1File, FileMode.CreateNew);
88
- s.Result.CopyTo(fs);
+ var bytes = client.GetByteArrayAsync(@"https://dot.net/v1/dotnet-install.ps1").Result;
+ File.WriteAllBytes(ps1File, bytes);
89
}
90
PowerShellTasks.PowerShell($" {ps1File} -Channel 3.0 -Architecture x86");
91
});
0 commit comments