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

조회 수: 7 (최근 30일)
Yuval
Yuval 2025년 4월 17일
댓글: Yuval 2025년 4월 22일
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

채택된 답변

Shaunak
Shaunak 2025년 4월 22일
편집: Shaunak 2025년 4월 22일
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!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Standalone Applications에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by