Generating .NET Code for usage without Matlab Runtime

I have Matlab Coder, which allows to generate C++ code from my Matlab functions, classes, etc. Creating DLL files is also possible. However, as far as I know, there's no way to generate C# code with Coder. Is there a general way to directly generate C#/.NET files from Matlab that can then be used in the .NET Framework without the Matlab Runtime?
As far as I understand, the Matlab Compiler SDK doesn't offer this functionality. It allows for generating C++ or NET-applications, but these generated apps require the Matlab Runtime.

Answers (1)

Sorry, there is no way to generate C# code at present.
I have no information as to whether Mathworks is working on a C# code generator.

Categories

Find more on MATLAB Compiler SDK in Help Center and File Exchange

Products

Release

R2025b

Asked:

on 7 Apr 2026 at 15:49

Answered:

on 7 Apr 2026 at 20:06

Community Treasure Hunt

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

Start Hunting!