I am using a C++ dll in C#(WPF) using DllImport(). I have created a setup with release mode and able to run on any machine where Visual Studio installed. But not able to run where Visual Studio is not installed. I am getting the error Unable to load DLL 'xyz.dll The specified module could not be found. (Exception from HRESULT: x8007007E). Please help me for get rid off from this error.
What I have tried:
I also tried to given static path for Dll.