Update install for build agent (#217)
Co-authored-by: freddydk <freddydk@users.noreply.github.com>
This commit is contained in:
Родитель
000758945b
Коммит
2afd99d56c
|
@ -30,4 +30,18 @@ choco install gh
|
|||
AddToStatus "PowerShell 7"
|
||||
choco install pwsh -y
|
||||
|
||||
AddToStatus "Microsoft Visual C++ Redistributable for Visual Studio 2015-2022 14.36.32532"
|
||||
choco install vcredist140 -y
|
||||
|
||||
AddToStatus "Microsoft dotnet"
|
||||
choco install dotnet -y
|
||||
|
||||
AddToStatus "Microsoft dotnet SDK"
|
||||
choco install dotnet-sdk -y
|
||||
|
||||
AddToStatus "Checking dotnet nuget list sources"
|
||||
$sources = dotnet nuget list source
|
||||
if (!($sources | where-Object { $_.Trim() -eq 'https://api.nuget.org/v3/index.json' })) {
|
||||
AddToStatus "Adding nuget.org source"
|
||||
dotnet nuget add source https://api.nuget.org/v3/index.json --name nuget.org
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче