Skip to content

Known issues

Felipe Michel edited this page Mar 24, 2021 · 1 revision

Usage problems

Problem: 401 Unauthorized

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:

  1. 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

azure-token.png

  1. 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

nuget.config file

image.png

References

Clone this wiki locally