Replies: 2 comments 7 replies
-
Does Interestingly when searching (in a search engine) for that code the title is "NuGet Error NU1213" but in the actual document it says warning (Maybe it's a case of the .NET SDK changing the level from warning to error like this one https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/NU1605#solution-3 but that's warning as error so not exactly the same or it just changed at some point and the title is cached or something because the title tag in the HTML is "NuGet Warning NU1213...")
(Discussions seem to be in a bit of a skip zone so might make sense to open an issue instead to get an official response in a reasonable time.) |
Beta Was this translation helpful? Give feedback.
-
On a different machine, I am getting |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In order to populate our private repo (no nuget.org access allowed at all for our builds), we also need to pull in all the base runtime packages (like
Microsoft.NETCore.App.Ref
and co).We are using regular restores of generated project files (with a nuget proxy repo in Nexus, so that any packages accessed by the restore are pulled in).
However, for the platform packages, this results in
I tried using
<FrameworkReference>
,<PlatformReference>
and<DotnetPlatformReference>
instead of<PackageReference>
, but those have no effect (some version of the.Ref
packages does get pulled in (probably just based on the TargetFramework), but not the specific version referenced).Despite the error, all packages I am trying to grab via the restore are accessed and therefore downloaded, so from my point of view, everything is OK.
So my only obstacle is the
NU1213
error message; I'm happy to ignore it, but it would be a lot nicer if I could just suppress it (would also avoid real errors getting lost in the output).I tried adding NU1213 to
NoWarn
andNoError
properties, to no effect; not sure what other properties to try.Beta Was this translation helpful? Give feedback.
All reactions