Deploying an unmanaged dll dll as part of a .NET control

I have C # wincontrol which depends on a bunch of unmanaged C ++ dlls.

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

Is there any way to enable these mylib [a | b] .dll when deploying dotnetctrl.dll? those. when I add a dotnetctrl reference in a project, is there a way to make mylib libraries available on the right path just like a .NET assembly?

+3
source share
2 answers

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

+2
source

DLL , .NET, DLL .

, .

0

Source: https://habr.com/ru/post/1733933/


All Articles