question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NuGet package does not link native libs

See original GitHub issue

Rather 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:open
  • Created 6 years ago
  • Reactions:6
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

21reactions
robvanpamelcommented, Feb 26, 2018

Hi @rdvojmoc

Do you have any update on this ?

Kind regards Rob

3reactions
rdvojmoccommented, Jan 5, 2018

@ajryan thanks for the PR, I will review it in next week.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found