Write source code for an application that uses the .NET component created in Create a .NET Assembly.
The C# source code for the sample application for this example
is in MagicSquareExample\MagicSquareCSApp\MagicSquareApp.cs.
Tip
Although MATLAB® Compiler SDK™ generates C# code for the |
Build the application using Visual Studio® .NET.
Note:
In the project file for this example, the |
Note: Microsoft® .NET Framework version 2.0 is not supported by Visual Studio 2003. |
Open the project file for the Magic Square example (MagicSquareCSApp.csproj)
in Visual Studio .NET.
Add a reference to the MWArray component
in matlabroot\toolbox\dotnetbuilder\bin\architecture\framework_version.
See Supported Microsoft .NET Framework Versions for a list of supported framework versions.
If necessary, add a reference to the Magic Square component
(MagicSquareComp), which is in the distrib subfolder.