Create nuget package with multiple DLLs

后端 未结 8 1748
忘了有多久
忘了有多久 2020-12-25 09:58

Let\'s say I have a project with this structure:

MyLibrary\\
  MyLibrary.sln
  MyLibrary.Core\\
    MyLibrary.Core.csproj
  MyLibrary.Extensions\\
    MyLibr         


        
8条回答
  •  一个人的身影
    2020-12-25 10:34

    I recently published a solution for this...

    My solution enables automatic creation of NuGet packages when you build the solution where each package can contain multiple assemblies, references to both external NuGets and NuGets created during the same build and even include the source code for debugging.

    In your case, all you will need to do is add a new class library project to your solution, reference the projects you want to package, then add a post build event.

    You can find an article with a walk-through guide here and the source code + binary here.

提交回复
热议问题