From 1a20af2405464a0377748f5ec3f0b64c7242efef Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Sat, 29 Jan 2022 13:00:14 +0300 Subject: [PATCH] Update dotnet tool path (#4961) --- images/win/scripts/Installers/Install-DotnetSDK.ps1 | 2 +- images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 | 2 +- images/win/scripts/Tests/DotnetSDK.Tests.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/images/win/scripts/Installers/Install-DotnetSDK.ps1 b/images/win/scripts/Installers/Install-DotnetSDK.ps1 index 6a4ced456..54f7f40b8 100644 --- a/images/win/scripts/Installers/Install-DotnetSDK.ps1 +++ b/images/win/scripts/Installers/Install-DotnetSDK.ps1 @@ -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 } } diff --git a/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 b/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 index 172244c4b..7c3d879f4 100644 --- a/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 +++ b/images/win/scripts/SoftwareReport/SoftwareReport.Common.psm1 @@ -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 = @() diff --git a/images/win/scripts/Tests/DotnetSDK.Tests.ps1 b/images/win/scripts/Tests/DotnetSDK.Tests.ps1 index 3ad3e7420..b7f364998 100644 --- a/images/win/scripts/Tests/DotnetSDK.Tests.ps1 +++ b/images/win/scripts/Tests/DotnetSDK.Tests.ps1 @@ -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 " is available" -TestCases $testCases {