HI, I have written a C++ CLR console app in VS2019, add reference to a DLL (Microsoft.Sharepoint dll) and was able to build/rebuild the project with no error. I am able to access all the methods or classes inside the dll files in my code but whenever I try to debug or run the program I get the error saying that the system cannot find the dll file.
The error happens inside the MCRTEXE.cpp (which is not even part of my program) from which I understand is a C source file used by the system to set the environment of your project (I'm not sure of this one lol).
Here's the error message:
System.IO.FileNotFoundException: 'Could not load file or assembly 'Microsoft.SharePoint.Library, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.'
I checked and can say that the dll are in the project directory so I'm not sure why it keeps on saying that it cannot find the file.
I'm sure I'm missing on some configuration but I was hoping you could point it to me as I'm fairly new to C++.
Thanks in advance!