Deploying Matlab Library (Dll) Compiled in .NET to a client with no MCR

6 views (last 30 days)
Hi,
I have a MATLAB function compiled as a .NET library that I use in a C# application. I can run this on a client with the MATLAB Compiler Runtime (MCR) installed, but I would like to know if it's possible to run this on a client without needing to install the MCR, by including all the relevant MATLAB Runtime DLLs in the project.
My final goal is to run my application in a cloud environment using Docker containers, and I would like to achieve a lightweight deployment. If this cannot be done, should I deploy the entire MCR for each instance of my application's container?
Thanks!
-Yuval

Accepted Answer

Shaunak
Shaunak on 22 Apr 2025
Edited: Shaunak on 22 Apr 2025
Hi Yuval,
Running a MATLAB-compiled .NET library on a client machine generally requires either a full MATLAB installation or the MATLAB Compiler Runtime (MCR). Simply including a selection of MATLAB Runtime DLLs is typically not enough, since the compiled code depends on the complete set of libraries and resources provided by the full MCR.
For lightweight deployment—especially in a cloud or Docker container setup—you can choose to install the full MCR within their container image. You can refer to the following MathWorks documentation for more information on MCR:
You might find these documentation links helpful for further details:
Hope this helps!

More Answers (0)

Categories

Find more on Standalone Applications in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!