# How to make MathNet.Numerics work with Unity?

I have installed the latest version of MathNet on Visual Studio using the NuGet Package Manager. I've also, copied the MathNet.Numerics.dll to an Plugins folder in the Unity editor. Yet it still gives a compiler error: error CS0234: The type or namespace name 'Distributions' does not exist in the namespace 'MathNet.Numerics' (are you missing an assembly reference?)

Does anyone know how to solve this or knows a similar package that works with Unity?

• How have you configured the dll import settings in the inspector inside Unity? – DMGregory May 21 '20 at 15:35
• Haven't touched it, kind of a newbie here. Updated question with image. – ManoTech May 21 '20 at 15:51
• Have you had any luck with this? Specifically curious if this library works in Unity Games deployed to Android or iOS. – Ari Goldschmidt Jan 20 at 19:52
• Honestly I don't remember but I don't think I got it working. I think I just used another package, from unity asset store. – ManoTech Jan 21 at 17:59
• Try put it in Assets/Plugins and then maybe you need to add a reference to it in your asmdef file. I did something like that before. – Emil Feb 3 at 16:42