Using GitHub Packages from Visual Studio 2019

We use Visual Studio 2019 and I need to be able to get an internal package from an internal repository release.
Visual studio already have my azure AD credentials which it should use when trying to access Azure AD protected resources but I only get unauthorized response. I am not allowed to use nuget.config as it requires an apikey to be on the computer config.
I have not been able to find anything to get this to work

Hi @buch-nuuday,

Has your package been published to GitHub packages? If it has, you should be able it see it in Visual Studio by adding the feed URL, e.g.<OWNER>/index.json and setting the password as a PAT with the read:packages scope. The username can be anything.

Please let me know how you get on!

I have gotten it to work with a solution that is secure

1 Like