Getting Started with the %COMPONENT_NAME% .NET Assembly

The Library Compiler in MATLAB® Compiler SDK™ creates Microsoft® .NET Assemblies that can be integrated with applications written in .NET. It also generates sample .NET driver code that can be used to integrate and test the generated components. You can use this guide to set up your environment and run your sample driver application.
Note: Sample .NET driver code is only generated if sample MATLAB code is included during the packaging phase. Samples can be found in the folder named "samples".

Location of Installed .Net Assembly Files

View %COMPONENT_NAME% Files
%SAMPLE_LINK%

Prerequisites

1. Install and Configure the MATLAB Runtime
Complete this step only if you have not installed the MATLAB Runtime while installing the .NET Assembly.
2. Configure the .NET Environment

Compiling .NET Driver Applications

At the system terminal, type:
csc.exe /target:exe /out:%SAMPLE1%.exe /r:%COMPONENT_NAME%.dll /r:%RUNTIME_ROOT%\toolbox\dotnetbuilder\bin\win64\v4.0\MWArray.dll %SAMPLE1%.cs
Replace %RUNTIME_ROOT% with the installation folder of the MATLAB Runtime
Note: You will need write permissions to the folder where you are compiling your driver application. If you do not have write permissions, copy the sample and generated component to a folder with write permissions, and then compile your driver application.

Executing .NET Driver Applications

At the system terminal, type:
%SAMPLE1%.exe

Additional Resources

.NET Assembly Integration
.NET MWArray API