-
Notifications
You must be signed in to change notification settings - Fork 0
Known issues
Felipe Michel edited this page Mar 24, 2021
·
1 revision
When try use any .NET command like dotnet restore
or nuget restore
, you've got an error similar to this:
error: Response status code does not indicate success: 401 (Unauthorized).
To fix this, try to do the steps below:
- Generate a personal access token (PAT)
Follow the steps like described in Microsoft: Use personal access tokens
After generate a personal token, probably you will have something like this in the grid list:
- A token generated automatically by Azure pipeline, and...
- Your created token. In this example below, it's called:
Azure Artifacts Local Desktop
- Register a FEED with personal access token
Follow the steps like described in Microsoft: Add a feed to NuGet 2
After that, you will se these changes stored in a file in your USER scope called nuget.config
, in the path:
- Windows: %appdata%\NuGet\NuGet.Config
- Mac/Linux: ~/.config/NuGet/NuGet.Config