Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy unmanaged dependecy dll within a .NET control

i've a c# wincontrol that depends on a bunch of c++ unmanaged dlls.

dotnetctrl.dll
 +
 +--myliba.dll
 +
 +--mylibb.dll

Is there a way to include these mylib[a|b].dll when deploying the dotnetctrl.dll? i.e. When in a project I add a reference to dotnetctrl, is there a way to make the mylib dlls available in the right path just like .NET assembly?

like image 281
Alienpenguin Avatar asked Dec 30 '25 00:12

Alienpenguin


1 Answers

Click on the unmanaged DLLs, then in Properties, change the "Build Action" to "None" and the Copy to Output Directory to "Copy if newer"

like image 65
Dave Avatar answered Jan 01 '26 14:01

Dave