Adding .net lib to standalone build

I have to do some signal processing and work with discrete data sets coming from biometric data, I was hoping to use a library like

http://www.mathdotnet.com/About.aspx

How do I go about adding this lib to unity to use in editor and standalone builds?

I have no need for web builds.

Drag and drop.

I get an error upon importing the .dll stating "Internal compiler error. See the console log for more information. output was:
Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in :0
at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in :0
at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in :0
at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in :0
at Mono.CSharp.Driver.LoadReferences () [0x00000] in :0
at Mono.CSharp.Driver.Compile () [0x00000] in :0
at Mono.CSharp.Driver.Main (System.String[ ] args) [0x00000] in :0
"

Something is wrong with the dlls from the math.numerics site, I had to use their older iridium release from 2008, no errors there, anyone using this more current library and not having issues importing? If so where are you downloading it from?

as their page says the current version is .NET 4.0
That is non usable, any library you use must be compiled against the old CLR so build for .NET 3.5 or earlier or it will not work

Hey dreamora, thanks for the help, unfortunately, I’m not sure what you mean about building against the old CLR,… can you give me some hints about how to go further?

Apologizes for the ignorance…

Just ensure its built as .NET 3.5 or earlier assembly and its fine.
If it requires .NET4 it will not work in unity no matter what you do

You could wait for unity to support 4.0. It might take a couple years :stuck_out_tongue:

to anyone looking for .net libraries to use with unity that include statistics and math abilities. I was able to use meta.numerics and alglib instead.