mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
Update dotnet tool path (#4961)
This commit is contained in:
committed by
GitHub
parent
f09c8ab9f2
commit
1a20af2405
@@ -114,7 +114,7 @@ function InstallTools()
|
||||
|
||||
ForEach ($dotnetTool in $dotnetTools)
|
||||
{
|
||||
dotnet tool install $($dotnetTool.name) --tool-path "C:\Users\Default.dotnet\tools" --add-source https://api.nuget.org/v3/index.json | Out-Null
|
||||
dotnet tool install $($dotnetTool.name) --tool-path "C:\Users\Default\.dotnet\tools" --add-source https://api.nuget.org/v3/index.json | Out-Null
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -201,7 +201,7 @@ function Get-DotnetSdks {
|
||||
}
|
||||
|
||||
function Get-DotnetTools {
|
||||
$env:Path += ";C:\Users\Default.dotnet\tools"
|
||||
$env:Path += ";C:\Users\Default\.dotnet\tools"
|
||||
$dotnetTools = (Get-ToolsetContent).dotnet.tools
|
||||
|
||||
$toolsList = @()
|
||||
|
||||
@@ -24,7 +24,7 @@ Describe "Dotnet SDK and tools" {
|
||||
}
|
||||
|
||||
Context "Dotnet tools" {
|
||||
$env:Path += ";C:\Users\Default.dotnet\tools"
|
||||
$env:Path += ";C:\Users\Default\.dotnet\tools"
|
||||
$testCases = $dotnetTools | ForEach-Object { @{ ToolName = $_.name; TestInstance = $_.test }}
|
||||
|
||||
It "<ToolName> is available" -TestCases $testCases {
|
||||
|
||||
Reference in New Issue
Block a user