Enable all dependencies using the dotnet package

Is there a way to force dotnet packall referenced assemblies to be included (all dependencies in project.json)?

I believe this is due to:

+6
source share
3 answers

By design, each dependency should be distributed between points.

Some people include DLLs from their release folder as files in their package options to get around design.

However, creating packages for each individual dependency will make the code easier to update, maintain, update, etc.

0
source

I hope this helps you.

nuget pack yournuspecfile.nuspec -properties Configuration=Release -IncludeReferencedProjects

.

0

I looked for this answer and was annoyed when I could not find the obvious. The best solution for me was to create nuspec, add the list of DLLs that I wanted in nupkg to this specification, and then build it using the dotnet package. I created a simple example and read it here - nuget application example

0
source

Source: https://habr.com/ru/post/1659693/


All Articles