This repository was archived by the owner on Jun 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/PowerShellGet/public/psgetfunctions Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -613,7 +613,7 @@ Describe "Azure Artifacts Credential Provider Integration" -Tags 'BVT' {
613
613
UnRegister-PSRepository - Name $repoName - ErrorAction SilentlyContinue - WarningAction SilentlyContinue
614
614
}
615
615
616
- it " Register-PackageSource using Visual Studio installed credential provider" - Skip:(! $VSinstalledCredProvider -or ! $IsWindows ) {
616
+ it " Register-PackageSource using Visual Studio installed credential provider" - Skip:(! $VSinstalledCredProvider ) {
617
617
Register-PSRepository $repoName - SourceLocation $testLocation
618
618
619
619
(Get-PSRepository - Name $repoName ).Name | should match $repoName
Original file line number Diff line number Diff line change @@ -43,10 +43,10 @@ function Get-CredsFromCredentialProvider {
43
43
}
44
44
else {
45
45
# Option 1b) Find User-location - The NuGet Home location - %UserProfile%/.nuget/plugins/
46
- $path = " `" $ env: UserProfile /.nuget/plugins/netcore/CredentialProvider.Microsoft/CredentialProvider.Microsoft.dll`" " ;
46
+ $path = " $ ( $ env: UserProfile) /.nuget/plugins/netcore/CredentialProvider.Microsoft/CredentialProvider.Microsoft.dll" ;
47
47
48
48
if ($script :IsLinux -or $script :IsMacOS ) {
49
- $path = " `" $ HOME /.nuget/plugins/netcore/CredentialProvider.Microsoft/CredentialProvider.Microsoft.dll`" " ;
49
+ $path = " $ ( $ HOME) /.nuget/plugins/netcore/CredentialProvider.Microsoft/CredentialProvider.Microsoft.dll" ;
50
50
}
51
51
if (Test-Path $path - PathType Leaf) {
52
52
$credProviderPath = $path
@@ -68,7 +68,7 @@ function Get-CredsFromCredentialProvider {
68
68
return $null
69
69
}
70
70
71
- $vswhereExePath = " `" $ programFiles \\Microsoft Visual Studio\\Installer\\vswhere.exe`" "
71
+ $vswhereExePath = " $ ( $ programFiles) \\Microsoft Visual Studio\\Installer\\vswhere.exe"
72
72
if (! (Test-Path $vswhereExePath - PathType Leaf)) {
73
73
return $null
74
74
}
You can’t perform that action at this time.
0 commit comments