We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca8c8e0 commit d711a2bCopy full SHA for d711a2b
.github/scripts/install-dotnet-windows.ps1
@@ -0,0 +1,16 @@
1
+param (
2
+ [string]$Version,
3
+ [string]$Arch
4
+)
5
+
6
+Invoke-WebRequest -Uri https://dot.net/v1/dotnet-install.ps1 -OutFile dotnet-install.ps1
7
+./dotnet-install.ps1 -Architecture $Arch -Channel $Version
8
9
+if ($Env:DOTNET_INSTALL_DIR) {
10
+ $dotnetRoot = $Env:DOTNET_INSTALL_DIR
11
+} else {
12
+ $dotnetRoot = Join-Path $Env:LOCALAPPDATA "Microsoft\dotnet"
13
+}
14
15
+$dotnetRoot >> $Env:GITHUB_PATH
16
+"DONET_ROOT=$dotnetRoot" >> $Env:GITHUB_ENV
0 commit comments