Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Nuget "Pack" command in Visual Studio not including the correct dll in the package

$
0
0

Running Visual Studio 2022 Community, following the directions for my project. Right click on the Project in my solution (there are 3 projects in my solution), select "Pack" and it builds just like the directions say. The problem is that it's including the dll from another project in the same solution in the package, and not the one it shows in the output in the console. The dlls are all in the same directory.

Everything I've looked at regarding dlls and nuget talks about getting the dependencies and other files, but not the main thing that's supposed to be packaged.

In addition, I get these two warnings which I looked up, but what I found doesn't make sense to me, or give me a clear idea what I need to do to prevent these errors:

NuGet.Build.Tasks.Pack.targets(221,5): warning NU5128: Some target frameworks declared in the dependencies group of the nuspec and the lib/ref folder do not have exact matches in the other location. Consult the list of actions below:NuGet.Build.Tasks.Pack.targets(221,5): warning NU5128: - Add lib or ref assemblies for the net7.0 target framework

So how do I make sure that the "Pack" command includes the correct dll?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>