-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Following Latest build instructions results in NU1507 Message about 2 package sources defined when using CPM #1477
Comments
cc @joperezr |
Thanks for reporting this issue @ElanHasson. It isn't very clear to me what exactly is expected here from Aspire side, I don't think that in our dogfooding docs we talk about CPM, but I'm assuming that is something you onboarded on separately in your project? From your description, the issue is not unique to Aspire, and instead you'll hit this with any different project which requires an extra nuget feed when using CPM. For that reason, I'm not sure exactly what is the ask here, so it'd be great if you help me understand @ElanHasson. |
Hi @joperezr So, I use devcontainers (yes i know, limited aspire support currently) and was using the dailies via this feature I wrote.
The above Am I doing something wrong here or Is there a better way to do accomplish this? |
I had something similar where when Aspire SDK was installed in Visual Studio 2022, I received this error. To fix, I either had to uninstall the Aspire SDK or add the following to my
there are a number of issues that report something similar. Mine just happened to be caused by Aspire SDK. |
When using central package management, following the latest build instructions results in a message:
error NU1507: Warning As Error: There are 2 package sources defined in your configuration. When using central package management, please map your package sources with package source mapping (https://aka.ms/nuget-package-source-mapping) or specify a single package source. The following sources are defined: nuget.org, dotnet8
.I understand CPM isn't supported in templates from #1253 and is being tracked as NuGet/Home#12967, however I think a good outcome from this issue would be adding guidance to the instructions on how specifically to map properly (and also continue to use nuget.org) as there are several package sources and a scary message. 🐲
aspire/NuGet.config
Lines 5 to 12 in 51912ed
This seems to work:
The text was updated successfully, but these errors were encountered: