In accordance with this article, you must place the DLL "in the same place as the key file for the component specified in the warning." In my case, this was the output of the project, so I had to put my DLLs in this bin folder of the project along with the EXE (bin \ release).
There are many ways to do this:
- If it is a managed DLL, add it as a reference in the project. This will not allow you if it is uncontrollable.
- If this is not the case, you must manually copy them where they are needed.
Or automatically by adding a command line after the build (Projects tab, Events tab) as follows:
copy "$(ProjectDir)lib\$(PlatformName)\Unmanaged\*" "$(TargetDir)"
Where $(...) are predefined macros. Check them out, there are many others.
A bit complicated and error prone ... I would rather just indicate the file as a dependency in the project, but I did not find a way to do this.
source share