I am trying to compile a Matlab (R2010b) application that uses a .NET module, but I am facing a problem with incompatibility between the MCR and the .NET module:
- The .NET module is compiled with Visual Studio 2010.
- MCR is configured to use Visual Studio 2010.
- The application also contain a few Mex-files that are built with Visual Studio 2010 and they work just fine both in Matlab and with MCR.
If I load the assembly from the Matlab cli everything work just fine, but once I compile the app and run it from cmd.exe an error is thrown stating that the assembly is built with a runtime that is newer than the one currently loaded. I think that Matlab R2010b is built with Visual Studio 2008 and believe that this is the problem, but I wonder if anyone has a solution to the problem?