Filter löschen
Filter löschen

.NET Assembly Path

2 Ansichten (letzte 30 Tage)
Mark
Mark am 28 Apr. 2015
Kommentiert: Philip Caplan am 29 Apr. 2015
I am trying to use a .Net assembly (ExampleCSharp.dll) that references another .Net assembly (ExampleCpp.dll) internally and receive the following error:
Message: Could not load file or assembly 'ExampleCpp, Version=1.0.5596.19030,Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
when calling:
asm = NET.addAssembly([cd,'\ExampleCsharp.dll']);
I would assume that the NET path is the issue, but how do I resolve this? ExampleCsharp.dll and ExampleC.dll are in the same path.
My objective is to wrap a C++ dll in a C# dll which is then called from Matlab.
  1 Kommentar
Philip Caplan
Philip Caplan am 29 Apr. 2015
Where is 'ExampleCpp.dll' located relative to 'ExampleCsharp.dll'? Can you try placing both libraries in the same folder and rerunning the above command?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by