Main Content

MATLAB Compiler SDK .NET Target Requirements

System and Product Requirements

  • To install the MATLAB® Compiler SDK™ product, you must have the MATLAB and MATLAB Compiler™ products already installed.

  • The MATLAB Compiler SDK .NET target is available only on Windows®. However, MATLAB Compiler SDK supports .NET 5.0, which lets you create .NET applications on Windows and run them on Linux® and macOS.

  • For an up-to-date list of all the system and compiler software supported by MATLAB, MATLAB Compiler, and MATLAB Compiler SDK, see https://www.mathworks.com/support/compilers/current_release/.

Supported Microsoft .NET Versions

  • Microsoft® .NET Framework 4.x

  • Microsoft .NET Core 2.0 or higher

  • Microsoft .NET 5.0

Starting in R2019b, you can build .NET applications on a Windows platform and run them on Linux and macOS using .NET Core. To use this functionality, you must have .NET Core 2.0 or higher installed.

Starting in R2022a, you can build .NET applications on a Windows platform and run them on Linux and macOS using .NET 5.0. To use this functionality, you must have .NET 5.0 installed.

If you are loading a deployed application that references an assembly built with version 4.0 or above, you need to install .NET Framework version 4.0 or above (such as 4.5 or 4.6). The .NET Framework used for building the assembly may have a version higher than the one used to load the application.

If you are loading a deployed application that references an assembly built with version 5.0, you do not need to install .NET to load the application.

MATLAB Compiler SDK .NET Limitations

  • The .NET External Interface method addAssembly is unsupported.

  • Serializing MATLAB objects from MATLAB into .NET code is unsupported.

Path Modifications Required for Accessibility

To use some screen-readers or assistive technologies, such as JAWS®, you must add the following DLLs to your Windows library path:

matlabroot\sys\java\jre\arch\jre\bin\JavaAccessBridge.dll
matlabroot\sys\java\jre\arch\jre\bin\WindowsAccessBridge.dll

For instructions on setting the path, see Set MATLAB Runtime Path for Deployment.