Create nuget package with multiple DLLs

后端 未结 8 1684
忘了有多久
忘了有多久 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:40

    Have you tried NuGet Package Explorer? Might be the easiest way:

    http://nuget.codeplex.com/releases/view/59864

    0 讨论(0)
  • i have some tutorial how i did it with windows and visual studio:

    create local folder and call it packages like: c:/packages//lib - important to create another folder in folder call it lib and past there dll.

    open nuget package explorer - https://npe.codeplex.com/downloads/get/clickOnce/NuGetPackageExplorer.application

    the ui very intuitive just add dll and export it to /lib (for tutorial https://blog.zwezdin.com/2014/building-nuget-packages-with-gui-tool/ it in russian but see on pictures the flow it's about 3 clicks)

    it will create nuspec file

    open GIT BASH - https://git-for-windows.github.io/ and navigate to: cd c: => cd packages (the path of )

    *maybe on windows you will need provide developer options for windows's linux stuff (https://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/)

    in GIT BASH enter command: nuget add -source [options]

    where: : the full name of nuspec (include .nuspec)

    and: the path of folder lib in folder (c:/packages//lib)

    after the action ended successfully

    in GIT BASH enter another command:

    nuget pack .nuspec

    not in this folder you have .nupkg file.

    How to install a Nuget Package .nupkg file locally? - tutorial how to add it to visual studio.

    0 讨论(0)
提交回复
热议问题