フィルターのクリア

Cannot load .NET assembly from NetDotCell example

2 ビュー (過去 30 日間)
David Perlmutter
David Perlmutter 2020 年 10 月 14 日
コメント済み: David Perlmutter 2020 年 10 月 14 日
I'm trying to follow the example on building .NET applications here,
https://www.mathworks.com/help/matlab/matlab_external/net-arrays-to-cell-arrays.html
1) In Visual Studio Community (Version 16.7.6) I created a new Class Library (.NET Framework) project and copied the source code from the example.
2) In Properties --> Project Properties, I set the Target Framework to .NET Framework 4.5.
3) I ran Build --> Build Solution successfully. It produced a file "...\NetDotCell\bin\Debug\NetDotCell.dll"
4) In Matlab 2020a I ran NET.addAssembly('...\NetDotCell\bin\Debug\NetDotCell.dll') and got the following error
Message: Could not load file or assembly
'file:///...\NetDotCell\bin\Debug\NetDocCell.dll' or one of its
dependencies. The system cannot find the file specified.
Source: mscorlib
HelpLink:
  1 件のコメント
David Perlmutter
David Perlmutter 2020 年 10 月 14 日
Also, when I run NET.isNETSupported I get true, and I am able to successfully follow this example on built-in .NET Applications
https://www.mathworks.com/help/matlab/matlab_external/using-net-from-matlab-an-overview.html

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with Microsoft .NET についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by