Replies: 1 comment 2 replies
-
You haven't done anything wrong, if you want your package to only work with projects using PackageReference, and not be compatible with projects using packages.config. NU5131 is a warning, not an error. The warning was added at a time when .NET (Core) usage was very low, most customers were still using .NET Framework, non-SDK style projects, and packages.config. The warning primarily helped package authors creating packages that worked with packages.config to be aware they need to make changes to make their packages compatible with PackageReference, and therefore the "future of .NET". We should probably change the warning to only detect packages that are compatible with packages.config and not PackageReference, and stop warning on packages such as yours, which are only compatible with PackageReference. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to create a NuGet package that has separate assemblies for both x86 and x64.
Here is the folder structure:
Here is the .nuspec file:
However, when I try to pack the file I get the following warning:
...and when I add it to my project the reference assembly doesn't show up.
What am I doing wrong?
I thought I only need the DLL(s) in the ref and runtime folders of the NuGet package?
Beta Was this translation helpful? Give feedback.
All reactions