NuGet Assembly outside lib folder

前端 未结 8 573
悲&欢浪女
悲&欢浪女 2020-12-08 12:59

I\'m going to bang out a couple of questions here...first, with NuGet is it possible to create a package from a few DLLs? There is no visual studio project, just the command

8条回答
  •  孤城傲影
    2020-12-08 13:52

    I just ran into this problem. Nuget is expecting a structure that looks like:

    root
      - lib
        - net40
          - File1.dll
          - File2.dll
          - File3.dll
    

    net40 or net20 or net45 as appropriate to your .net version.

    run

    nuget pack yourlibrary.nuspec
    

    to package it up.

    That will pack up the dir wholesale and put it in the nupkg. The error messages will disappear at that point.

提交回复
热议问题