Replies: 1 comment
-
Thank you. A life saver :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I had a hard time installing DocFx and I thought I would put the solution I found here just in case either there's something that can be done about it, or other's might be searching for the same issue. I was using the command in a command window to install global
dotnet tool install --global docfx
I kept getting an error message that something was 401 (Unauthorized).
I rebooted and tried it again and then I got an additional line in the error that I hadn't seen before:
Unhandled exception: NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load the service index for source https://pkgs.dev.azure.com/[PATH TO COMPANY NUGET]/nuget/v3/index.json.
I have no idea why I didn't see this before rebooting and trying again.
Our company has some NuGet packages that we build and maintain for internal use. To fix this I opened VS 2022, opened one of the solutions, opened the NuGet package UI, and un-checked the NuGet package location for the company...
After clearing that checkbox I closed VS 2022 and ran the install again
dotnet tool install --global docfx
It worked this time.Hope this might help someone.
Mike
Beta Was this translation helpful? Give feedback.
All reactions