1 [CmdletBinding
(PositionalBinding
=$false)]
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
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
23 Write-Host $_.ScriptStackTrace
24 Write-PipelineTelemetryError
-Category
'InitializeToolset' -Message
$_