[master] Update dependencies from dotnet/arcade dotnet/core-setup dotnet/corefx ...
[mono-project.git] / eng / common / dotnet-install.ps1
blobec3e739fe83671e5ce2875eaeddca153d5728c49
1 [CmdletBinding(PositionalBinding=$false)]
2 Param(
3 [string] $verbosity = "minimal",
4 [string] $architecture = "",
5 [string] $version = "Latest",
6 [string] $runtime = "dotnet",
7 [string] $RuntimeSourceFeed = "",
8 [string] $RuntimeSourceFeedKey = ""
11 . $PSScriptRoot\tools.ps1
13 $dotnetRoot = Join-Path $RepoRoot ".dotnet"
15 $installdir = $dotnetRoot
16 try {
17 if ($architecture -and $architecture.Trim() -eq "x86") {
18 $installdir = Join-Path $installdir "x86"
20 InstallDotNet $installdir $version $architecture $runtime $true -RuntimeSourceFeed $RuntimeSourceFeed -RuntimeSourceFeedKey $RuntimeSourceFeedKey
22 catch {
23 Write-Host $_
24 Write-Host $_.Exception
25 Write-Host $_.ScriptStackTrace
26 ExitWithExitCode 1
29 ExitWithExitCode 0