mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
* postdotnet: delete nuget.conf if exists * rename to $nugetConfigPath * add nuget.config check test * remove issue link
12 lines
471 B
PowerShell
12 lines
471 B
PowerShell
$latestPath = [System.Environment]::GetEnvironmentVariable('PATH', [System.EnvironmentVariableTarget]::Machine)
|
|
$dotnetPath = "$env:USERPROFILE\.dotnet\tools"
|
|
|
|
if (-not $latestPath.Contains($dotnetPath))
|
|
{
|
|
$latestPath = "$dotnetPath;$latestPath"
|
|
[System.Environment]::SetEnvironmentVariable('PATH', $latestPath, [System.EnvironmentVariableTarget]::Machine)
|
|
}
|
|
|
|
# Recreate the config using the 'dotnet nuget list source command'
|
|
dotnet nuget list source
|