Open ElanHasson opened 11 months ago
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.
I understand CPM isn't supported in templates from https://github.com/dotnet/aspire/issues/1253 and is being tracked as https://github.com/NuGet/Home/issues/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. 🐲
The above nuget.config
is what I had to do to be able to consume the daily builds in my project.
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 Directory.Packages.Props
file:
<DisableImplicitLibraryPacksFolder>true</DisableImplicitLibraryPacksFolder>
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 https://github.com/NuGet/Home/issues/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. 🐲
https://github.com/dotnet/aspire/blob/51912ed9ddb4a6d07253a46eabc98ff643a5c206/NuGet.config#L5-L12
This seems to work: