Skip to content

NET.addAssembly

NET · scripts/+NET/addAssembly.m

: asm = NET.addAssembly (name)
: asm = NET.addAssembly (filepath)

Load a .NET assembly by short name or by file path so that its types become available as Namespace.Type from M-code.

This Nexus build does not embed a Mono or .NET Core host, so the call always fails with a clear error. Use NET.isNETSupported to probe availability before calling this function. When embedding is enabled in a later build, name may be a framework assembly such as "System" and filepath may be a .dll path.