Just add @JeremyThompson answer:
My problem is with the link to the COM object, selecting "Add Link" and viewing the .exe file for the application (i.e. C: \ Program Files (x86) \ ProFile \ profile.exe). This added the βInterop.Profile.dllβ (obviously, it will differ depending on which SDK you are trying to get) the link, which was located in the obj / Debug folder, as described by @JeremyThompson.
In my particular case, I had a link to Interop.Profile.dll in two projects, one of which did not receive the error above and was successfully built. I went to the obj / Debug folder for a successfully created project and copied the Interop.Profile.dll file to my Solution DLL folder (this is only the folder that I created to save all my assemblies in one place, but you can technically put your COM DLL anywhere outside the obj / Debug folder), and then changed the links of both my projects to the Interop.Profile.dll file, which is in my DLL folder, and not to the obj / Debug folder.
As soon as I did this, my application was built successfully (using Rebuild, or Clean, and then Build).
Obviously, my case is quite specific, but I hope it helps someone out there.
source share