Where to place dlls for unmanaged libraries?

前端 未结 5 543
生来不讨喜
生来不讨喜 2020-12-30 22:52

I am trying to create a Nuget package for a library that depends on ghostscript and therefore references gsdll32.dll - an unmanaged library. I can\'t just included that a st

5条回答
  •  一个人的身影
    2020-12-30 23:19

    I largely got this to work using Lars Michael's method, but one thing I needed to add comes from James Eby's answer. Visual Studio was trying to register all the dll's in my lib directory, so I added a references element to the metadata in the nuspec file to tell it to only register the managed dll:

    
                  
    
    

    Also in

    
    

    I first tried the id of my package FANNCSharp-x64, but it needed the full package name: FANNCSharp-x64.0.1.4.

提交回复
热议问题