Include all dependencies using dotnet pack

前端 未结 4 1198
滥情空心
滥情空心 2021-01-02 00:19

Is there any way to force dotnet pack to include all referenced assemblies (all dependencies in project.json)?

I believe this is related:

4条回答
  •  攒了一身酷
    2021-01-02 01:05

    I was looking for this answer and was annoyed when I couldn't find an obvious one. The solution that worked best for me was to create a nuspec, add the list of DLLs I wanted in the nupkg to that spec and then build with dotnet pack. I created an easy sample and readme here - nuget sample app

提交回复
热议问题