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

6 ビュー (過去 30 日間)
Carlos Gutierrez
Carlos Gutierrez 2022 年 9 月 26 日
回答済み: Divyanshu 2025 年 1 月 15 日
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 Center および File ExchangeGet 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