Describe your question in as much detail as possible:
I created a group with some projects in it. The projects are dotnet libraries, i want to package as NuGet and publish them in the package repository.
First part is already working:
I am able to create the package and publish it to the repository.
- What are you seeing, and how does it differ from what you expect to see?
But when i try to use the package in another project, i get the following messages:
error: Unable to load the serviceindex for source xxx error: Response status code does not indicate success: 401 (Unauthorized)
I created a personal api token and used that when adding the NuGet source.
nuget source Add -Name "MyGitLabRepo" -Source "https://gitlab.com/api/v4/projects/<MyProject-ID>/packages/nuget/index.json" -UserName <MyTokenName> -Password <MyToken>
I would expect the token to work and the package to be installed on my project.
What version are you on (Hint:
/help) ? and are you using self-managed or gitlab.com?
I’m on gitlab.com (free)
What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?
Already tried to create a new token in case i had a typo.