필터 지우기
필터 지우기

.NET Assembly Path

조회 수: 2 (최근 30일)
Mark
Mark 2015년 4월 28일
댓글: Philip Caplan 2015년 4월 29일
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
Philip Caplan
Philip Caplan 2015년 4월 29일
Where is 'ExampleCpp.dll' located relative to 'ExampleCsharp.dll'? Can you try placing both libraries in the same folder and rerunning the above command?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by