Strong named Assembly versions of MathWorks.MATLAB.Runtime.dll and MathWorks.MATLAB.Types.dll
Show older comments
I want to build a C# Dll from my Matlab code by using the
compiler.build.dotNETAssembly()
function. I then use a script to change the created *.csproj and finally build the Dll with the dotnet build command. The integration in C# works well by following the example on this page: https://de.mathworks.com/help/compiler_sdk/dotnet/deploy-matlab-handle-subclass-to-dotnet.html
However, this only works, if no strong named assemblies are built.
If I try to build strongly named assembly, my C# application won't work, as the both Dll's Mathworks.MATLAB.Types.dll and MathWorks.MATLAB.Runtime.dll are no strong named assemblies.
The following error message appears:
Could not load file or assembly ... or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
There is a way to dissasemble the Dll's and assembale them again with a key file, so that they are strong named assemblies. However, I don't know if this is allowed, according to the license aggreement of MATLAB?
Is there any other way to built a strong named assembly?
Accepted Answer
More Answers (0)
Categories
Find more on Manage Products in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!