NET.addAssembly
Make .NET assembly visible to MATLAB
Description
loads a global .NET assembly into MATLAB®.asmInfo
= NET.addAssembly(globalName
)
If you load a .NET Core assembly, you can unload
it by calling NET.unloadAssembly
. If you modify and rebuild a .NET Framework assembly, you
must restart MATLAB to access the updated code. (since R2025a)
loads a private .NET assembly.asmInfo
= NET.addAssembly(privateName
)
Examples
Input Arguments
Output Arguments
Limitations
NET.addAssembly
does not support assemblies generated by the MATLAB Compiler SDK™ product.
Tips
You do not need to call
NET.addAssembly
to access classes in themscorlib.dll
andsystem.dll
assemblies. MATLAB dynamically loads these assemblies from the .NET class library the first time you type "NET.
" or "System.
".Refer to your .NET product documentation for the name of the assembly and its deployment type (global or private).
Version History
Introduced in R2009a