Add arcade infrastructure
This commit is contained in:
parent
3555f34527
commit
039b4dcd26
25 changed files with 2151 additions and 16 deletions
21
eng/common/darc-init.ps1
Normal file
21
eng/common/darc-init.ps1
Normal file
|
@ -0,0 +1,21 @@
|
|||
$verbosity = "m"
|
||||
. $PSScriptRoot\tools.ps1
|
||||
|
||||
function InstallDarcCli {
|
||||
$darcCliPackageName = "microsoft.dotnet.darc"
|
||||
$dotnet = "$env:DOTNET_INSTALL_DIR\dotnet.exe"
|
||||
$toolList = Invoke-Expression "$dotnet tool list -g"
|
||||
|
||||
if ($toolList -like "*$darcCliPackageName*") {
|
||||
Invoke-Expression "$dotnet tool uninstall $darcCliPackageName -g"
|
||||
}
|
||||
|
||||
$toolsetVersion = $GlobalJson.'msbuild-sdks'.'Microsoft.DotNet.Arcade.Sdk'
|
||||
|
||||
Write-Host "Installing Darc CLI version $toolsetVersion..."
|
||||
Write-Host "You may need to restart your command window if this is the first dotnet tool you have installed."
|
||||
Invoke-Expression "$dotnet tool install $darcCliPackageName --version $toolsetVersion -v $verbosity -g"
|
||||
}
|
||||
|
||||
InitializeTools
|
||||
InstallDarcCli
|
Loading…
Add table
Add a link
Reference in a new issue