I have a solution that contains a C ++ DLL project and a C # project that will use this DLL (using PInvoke).
The dll is created in the x64/Release folder in the folder with my solution, which makes sense, because in this way the C # project should not insert DLLs into the project folders.
Interestingly, that would be the right way to refer to it now. Right now, a DLL project is a dependency of a C # project. My intuition told me that this should be enough, but the C # project says that it cannot find the DLL.
Should I just add the .dll file as a link? I thought this might work now, but ultimately break things when project settings can change.
Lee white
source share