C# - WPF Sample Build Error

To be able to build the sample code, I added OpenCascade headers as additional include directories to OCCTProxy project like in attached photo 1.

Afterwards, I added path of the opencascade .lib files to OCCTProxy project as additional library directories like in attached photo 2 .

Finally, I added all .lib files path as additional dependencies to OCCTProxy project like in attached photo 3.

After these steps I run the "msvc.bat vc142 win64 Debug " command and OCCTProxy.dll has been created successfully. Afterwards WPF project has been built successfully and program is executed. However, when I click new button attached exception occurs. Do you have any idea about this problem? (Attached photo crash)

System.IO.FileNotFoundException: 'Could not load file or assembly 'OCCTProxy.dll' or one of its dependencies. The specified module could not be found.

Thank you in advance.

Caleb Ardern's picture


I am not sure if you are running into the same problem as I just have.
I hope this helps https://dev.opencascade.org/content/occtproxy-csharp-build