A simple solution to embed external DLLs within your Nuget packages

Simply insert the following into your .csproj or .fsproj file, and package up as usual:

<ItemGroup>
<Content Include=”<My DLL path & DLL file”>
<Pack>true</Pack>
<PackagePath>lib\net5.0</PackagePath>
</Content>
</ItemGroup>

Adjust the PackagePath to suit your build.

Chris White

I climb mountains and work for a hedge fund

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store