Skip to content

Introduce NUGET_NETFX_PLUGIN_PATHS and NUGET_NETCORE_PLUGIN_PATHS to support configuration of both at same time #8151

Closed
NuGet/NuGet.Client
#2986
@zjrunner

Description

@zjrunner

NUGET_PLUGIN_PATHS can't be configured statically, to work for both nuget.exe and dotnet. If you add paths for the .exe and .dll credential providers to handle both cases, nuget fails trying to execute a dll and dotnet fails trying to execute the full framework .exe.

Details about Problem

NuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe):
nuget.exe, dotnet.exe
NuGet version (x.x.x.xxx):
5.0.0.5856
dotnet.exe --version (if appropriate):
2.2.300
VS version (if appropriate):

OS version (i.e. win10 v1607 (14393.321)):
win10 v1903
Worked before? If so, with which NuGet version:
no

Detailed repro steps so we can see the same problem

  1. set nuget_plugin_paths=d:\tools\credprovider\plugins\netcore\CredentialProvider.Microsoft\CredentialProvider.Microsoft.dll;d:\tools\credprovider\plugins\netfx\CredentialProvider.Microsoft\CredentialProvider.Microsoft.exe
  2. (fails) nuget.exe install newtonsoft.json
  3. (fails) dotnet new web & dotnet add package newtonsoft.json

Metadata

Metadata

Assignees

Labels

Area:PluginV2 plugin w/ cross platform supportType:DCRDesign Change Request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions