- https://www.mathworks.com/help/compiler_sdk/dotnet_assemblies.html
- https://www.mathworks.com/help/compiler_sdk/dotnet/integrate-your-net-assembly-into-a-c-application.html
Deploying Matlab Library (Dll) Compiled in .NET to a client with no MCR
    8 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Yuval
 el 17 de Abr. de 2025
  
    
    
    
    
    Comentada: Yuval
 el 22 de Abr. de 2025
            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
0 comentarios
Respuesta aceptada
  Shaunak
 el 22 de Abr. de 2025
        
      Editada: Shaunak
 el 22 de Abr. de 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!
Más respuestas (0)
Ver también
Categorías
				Más información sobre Standalone Applications en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

