ReferencedAssemblies

ReferencedAssemblies
is an option to DefineDLLFunction that specifies assemblies needed to compile your function declaration.

DetailsDetails

  • To use ReferencedAssemblies, you first need to load .NET/Link using Needs["NETLink`"].
  • This option is only relevant when you are using the form of DefineDLLFunction where you supply a single string that gives a complete C#-syntax extern function declaration. Such declarations need to be compiled, and by default the compilation process is only aware of the core System assembly.
  • If your declaration involves a type from another assembly, such as System.Drawing.Rectangle, you need to use the ReferencedAssemblies option, as in ReferencedAssemblies->{"System.Drawing.dll"}.
  • Note that you have to use the actual file name of the assembly, not its display name.