Unable to load service index
Symptom
The service index fails to load and the following error is shown:
Running `docfx metadata`...
Using .NET Core SDK 6.0.410
Loading project C:/Source/Forge/Shared/Forge.PluginInterfaces/Forge.PluginInterfaces.csproj
Determining projects to restore...
C:\Source\Forge\Shared\Shared.Models\Shared.Models.csproj : error NU1301: Unable to load the service index
for source https://pkgs.dev.azure.com/<org>/_packaging/<feed>/nuget/v3/index.json.
[C:\Source\Forge\Shared\Engine.Plugin\Forge.PluginInterfaces.csproj]
...
Failed to restore C:\Source\Forge\Shared\Engine.PluginInterfaces\Engine.PluginInterfaces.csproj (in 1.02 min).
Failed to restore C:\Source\Forge\Shared\Shared.Models\Shared.Models.csproj (in 1.02 min).
The real build log repeats this NU1301 failure for every NuGet feed the project restores from, and then cascades into a long run of CS0400/CS0246/CS0518 compiler errors once the restore fails — trimmed here since it's the same root cause repeated many times.
Solution
Delete NuGet.Config locally. Don't merge this change.
note