While NUGET_CREDENTIALPROVIDERS_PATH is specifically for credential providers, NUGET_PLUGIN_PATHS is used for the newer, more versatile plugin system introduced in NuGet 4.8+. If you are using the latest version of the Azure Artifacts Credential Provider, it is often recommended to use the plugin model for better performance and cross-platform support.
Example folder structure:
: Modern NuGet uses a "plug-in" model. The credential provider must be compatible with the version of NuGet/dotnet you are using (e.g., .NET Core-based plugins for dotnet restore ). nuget_credentialproviders_path
: This environment variable takes precedence over the default installation folders. If it is set, NuGet will prioritize these paths when looking for plugins. Common Use Cases The credential provider must be compatible with the
Here is an example of how to configure the nuget_credentialproviders_path setting in a nuget.config file: Common Use Cases Here is an example of