NuGet package does not link native libs
See original GitHub issueRather than have to copy the libwk*.* native libs into the output folder, you can set up the NuGet package to include them automatically. They just need to be linked like so in the NuSpec:
<file src="..\..\v0.12.4\64 bit\libwkhtmltox.dll" target="runtimes\win7-x64\native" />
<file src="..\..\v0.12.4\64 bit\libwkhtmltox.so" target="runtimes\linux-x64\native" />
<file src="..\..\v0.12.4\64 bit\libwkhtmltox.dylib" target="runtimes\osx-x64\native" />
same goes for x86…
I’m happy to create a pull request if you’d like.
Thanks!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Nuget package not copying native DLLs on build
The nuget package has the managed DLL in the lib/netstandard2.0 directory and even has the unmanaged DLL in root/runtimes/RID/native directory.
Read more >Nupkg Containing Native Libraries
Recently started looking at publishing our C# libraries to nuget.org. This first post covers my experience with the actual packaging.
Read more >Creating Cross-Platform NuGet Package To Wrap Native ...
This will create a dynamic link library that can be bounded to C#. ... the native library as a manual step using NuGet...
Read more >Create a package using the nuget.exe CLI
A detailed guide on designing and creating a NuGet package, including files and versioning.
Read more >How to package a managed dll with its native dependencies?
I'm trying to create a nuget package wrapping some native dll:s and a managed lib using those dll:s.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @rdvojmoc
Do you have any update on this ?
Kind regards Rob
@ajryan thanks for the PR, I will review it in next week.