I have a C# task pane add-in, which is working as it should, except that when it invokes a dependency on an x86 dll I'm getting the following error:
Could not load file or assembly '
This function doesn't interact with Solidworks in any way at this point, other than being a hosted task pane add-in. I'm interacting with another software's SDK, and the references from that SDK which I'm using are x86. I've written custom dll shells to help my other applications handle this transition, and haven't run into this error outside of Solidworks since then. I've also encapsulated this add-in project so that I could host it in a generic application shell which is compiled for "any CPU", and everything works there. I only get this error when my add-in is hosted in Solidworks. I've also monitored activity related to the library in question in process monitor, and all of the references load successfully whether it's run inside or outside of Solidworks, which leads me to assume that it's a framework mismatch error.
Am I overlooking something? Is there a way that Solidworks can work with x86 references? I clearly can't recompile this other SDK's dll's; we have to work with them as they are.
SolidworksApi macros