Skip to content

Commit 96391f1

Browse files
committed
[Infra] Try to fix download.
1 parent 7cbed57 commit 96391f1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Build/Nuke/Build.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,8 @@ partial class Build : Nuke.Common.NukeBuild
8383
var ps1File = ResultDirectory / "donet-install.ps1";
8484
using (var client = new HttpClient())
8585
{
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);
86+
var bytes = client.GetByteArrayAsync(@"https://dot.net/v1/dotnet-install.ps1").Result;
87+
File.WriteAllBytes(ps1File, bytes);
8988
}
9089
PowerShellTasks.PowerShell($" {ps1File} -Channel 3.0 -Architecture x86");
9190
});

0 commit comments

Comments
 (0)