How to deploy a compiled application by MATLAB Compiler on Windows using the NET.addAssembly?

6 次查看(过去 30 天)
The current appication is running fine in MATLAB, but once that it is compiled with mcc and get the C files, Visual Studio says that the .dll added by NET.addAssembly is not found...

回答(1 个)

Divyanshu
Divyanshu 2025-1-15
A possible reason can be that the dll is not present in your Global Assembly Cache (GAC). You can add the dll to the GAC along with all other DLLs that it requires by following these instructions: Add assembly to global-assembly cache
You can execute the commands mentioned in the above instructions using "Developer Command Prompt for Visual Studio".
To verify if an assembly is present in GAC, type "SampleAssembly." in MATLAB and press TAB. It should show auto-fill options.
Hope it helps!

类别

Help CenterFile Exchange 中查找有关 Get Started with Microsoft .NET 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by