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

7 次查看(过去 30 天)
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