Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Please provide credentials error pushing to Azure DevOps

$
0
0

I am getting the error

"Please provide credentials for: https://jbright.pkgs.visualstudio.com/Project/_packaging/Project_Feed/nuget/v3/index.json"

from Visual Studio 2019 Community Powershell when I run the command:

nuget push -Source https://jbright.pkgs.visualstudio.com/Project/_packaging/Project_Feed/nuget/v3/index.json -ApiKey az C:\Users\Jens\source\repos\Project\Packed\Project.Core.0.4.0.7.nupkg 

I've tried what I've been able to find online to fix this including:

  • Deleting all credentials in Windows Credential Manager
  • Removing and re-adding this package source in Visual Studio PackageManager settings

I have a nuget.config file in the project directory that contains:

<?xml version="1.0" encoding="utf-8"?><configuration><packageSources><clear /><add key="Core_Feed" value="https://jbright.pkgs.visualstudio.com/Project/_packaging/Project_Feed/nuget/v3/index.json" /></packageSources></configuration><!--nuget push -Source https://jbright.pkgs.visualstudio.com/Project/_packaging/Project_Feed/nuget/v3/index.json -ApiKey az C:\Users\Jens\source\repos\Project\Packed\Project.Core.0.4.0.7.nupkg  -->

I keep the powershell command syntax in the file so I don't forget it, but as you can see it is commented out. The thing is, this works fine on my laptop with the same files.

When I delete the credentials in credential manager and then pull packages from this Azure DevOps feed, I get the packages and see the new credentials added to Windows. But even so, I cannot pucs a package to the feed without getting the "Please provide credentials' error.

Any idea how to fix this?thanks,Jens


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>