From 4fb0f0f03c76d94dee9df51b659589e2ae2f7162 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 3 Jun 2026 15:44:50 +0200 Subject: [PATCH] Fixing typo in the configuration example * The system-wide NuGet.config should be in %ProgramFiles(x86)% as per the documentation - Also, %appdata% would not require any elevation --- docs/consume-packages/configuring-nuget-behavior.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/consume-packages/configuring-nuget-behavior.md b/docs/consume-packages/configuring-nuget-behavior.md index 105b791ad..09f5299fa 100644 --- a/docs/consume-packages/configuring-nuget-behavior.md +++ b/docs/consume-packages/configuring-nuget-behavior.md @@ -70,7 +70,7 @@ dotnet nuget config set repositoryPath "C:\packages" --configfile "C:\my.config" dotnet nuget config set repositoryPath "c:\packages" --configfile "..\..\my.config" # Set repositoryPath in the computer-level file (requires elevation) -dotnet nuget config set repositoryPath "c:\packages" --configfile "%appdata%\NuGet\NuGet.Config" +dotnet nuget config set repositoryPath "c:\packages" --configfile "%ProgramFiles(x86)%\NuGet\Config\NuGet.config" ``` Mac/Linux: