[PR #10396] Fix NU1507 to allow only nuget.org via nuget.config #12471

Closed
opened 2026-02-07 06:56:27 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/jellyfin/jellyfin/pull/10396

State: closed
Merged: Yes


dotnet build fails with the following error if more than one nuget source is defined:

error NU1507: Warning As Error: There are 4 package so
urces defined in your configuration. When using central package management, please map your package sources with package source ma
pping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: nuget.o
rg, BuildB, BuildA, TelerikNuGetV3 [C:\_git\jellyfin\Jellyfin.sln]

Changes
Added a nuget.config file which removes all sources other than nuget.org for this repo.
Doc: https://learn.microsoft.com/en-us/nuget/consume-packages/package-source-mapping
More infos: https://github.com/dotnet/sdk/issues/25379

Issues

**Original Pull Request:** https://github.com/jellyfin/jellyfin/pull/10396 **State:** closed **Merged:** Yes --- `dotnet build` fails with the following error if more than one nuget source is defined: ``` error NU1507: Warning As Error: There are 4 package so urces defined in your configuration. When using central package management, please map your package sources with package source ma pping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: nuget.o rg, BuildB, BuildA, TelerikNuGetV3 [C:\_git\jellyfin\Jellyfin.sln] ``` **Changes** Added a nuget.config file which removes all sources other than nuget.org for this repo. Doc: https://learn.microsoft.com/en-us/nuget/consume-packages/package-source-mapping More infos: https://github.com/dotnet/sdk/issues/25379 **Issues** <!-- Tag any issues that this PR solves here. ex. Fixes # -->
OVERLORD added the pull-request label 2026-02-07 06:56:27 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#12471