✅ Package native libraries with nuget
Hey, is there a good guide how to package and deliver native assemblies with nuget?
I kinda managed to get them in the nuget but they wont unpack in the target location where the managed dll is...
4 Replies
In my csproj:
<ItemGroup>
<None Include="..\bin\minifier-bindings-*.*" Pack="true" PackagePath="lib/native" />
</ItemGroup>
should it be /runtimes?
https://learn.microsoft.com/en-us/nuget/create-packages/supporting-multiple-target-frameworks#architecture-specific-folders
Multi-targeting for NuGet Packages
Description of the various methods to target multiple .NET Framework versions from within a single NuGet package.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.Thanks that worked! @phaseshift
/close