How can I compile an assembly object using MATLAB Builder for .NET version 2.0 for compatibility with Microsoft .NET Framework 2.0?

1 view (last 30 days)
I have Microsoft Visual Studio .NET 2005, which is packaged with the Microsoft .NET Framework 2.0. I am attempting to use this compiler and framework to build a .NET component in MATLAB Builder for .NET 2.0 (R2006a).
When I compile a MATLAB .NET component, I receive the following error:
Error using ==> basicui>build
Error executing mcc, return status = 1.
When I use the verbose (-v) flag to display additional diagnostics, I also see the following error:
'C:/WINNT/Microsoft.NET/Framework/v1.1.4322/csc.exe' is not recognized as an internal or external command,
operable program or batch file.
Error: An error occurred while shelling out to CSC (error code = 1).
Unable to build executable.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This enhancement has been incorporated in Release 2007b (R2007b). For previous product releases, read below for any possible workarounds:
While the Microsoft Visual C++ 8.0 (2005) compiler is supported for use with MATLAB Builder for .NET 2.0 (R2006a), the Microsoft Framework 2.0 is not compatible with this version of MATLAB.
As a workaround, you may download and install Microsoft Framework 1.1 from the Microsoft website:
http:\\www.microsoft.com
This Framework can be installed on the same machine as Framework 2.0.
Also see the bug report below about using the verbose flag when using DOTNETTOOL in MATLAB Builder for .NET 2.0 (R2006a):

More Answers (0)

Products


Release

R2006a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!