msbuild

Форк
0
/
dotnet-install.ps1 
28 строк · 786.0 Байт
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 = ''
9
)
10

11
. $PSScriptRoot\tools.ps1
12

13
$dotnetRoot = Join-Path $RepoRoot '.dotnet'
14

15
$installdir = $dotnetRoot
16
try {
17
    if ($architecture -and $architecture.Trim() -eq 'x86') {
18
        $installdir = Join-Path $installdir 'x86'
19
    }
20
    InstallDotNet $installdir $version $architecture $runtime $true -RuntimeSourceFeed $RuntimeSourceFeed -RuntimeSourceFeedKey $RuntimeSourceFeedKey
21
}
22
catch {
23
  Write-Host $_.ScriptStackTrace
24
  Write-PipelineTelemetryError -Category 'InitializeToolset' -Message $_
25
  ExitWithExitCode 1
26
}
27

28
ExitWithExitCode 0
29

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.