22 lines
454 B
PowerShell
22 lines
454 B
PowerShell
![]() |
[CmdletBinding(PositionalBinding=$false)]
|
||
|
Param(
|
||
|
[string] $verbosity = "minimal",
|
||
|
[string] $architecture = "",
|
||
|
[string] $version = "Latest",
|
||
|
[string] $runtime = "dotnet"
|
||
|
)
|
||
|
|
||
|
. $PSScriptRoot\tools.ps1
|
||
|
|
||
|
try {
|
||
|
$dotnetRoot = Join-Path $RepoRoot ".dotnet"
|
||
|
InstallDotNet $dotnetRoot $version $architecture $runtime $true
|
||
|
}
|
||
|
catch {
|
||
|
Write-Host $_
|
||
|
Write-Host $_.Exception
|
||
|
Write-Host $_.ScriptStackTrace
|
||
|
ExitWithExitCode 1
|
||
|
}
|
||
|
|
||
|
ExitWithExitCode 0
|