Began to struggle with the fact that Unity refuses to see System.Numerics . I did everything as advised to me. In the mono folder in the .net 4.0 version, the required namespace is. Further, investigating the problem, I came across the fact that I have all the code in .net 3.5 :

a

When changing to .net 4.0, it seems to be changing, the code in Visual Studio stops shining red, but Unity still swears. When you restart everything is rolled back.

Question: How to change the .NET framework on which the Unity project runs from 3.5 to 4.0 ?

Anything you might need:

Unity 2017.3.0f3

Error in Unity: The Numerics does not exist in the namespace System. Are you missing Assembly.Numerics assembly reference?


A bit more information if useful.

    1 answer 1

    File -> Build Settings -> Player Settings -> Other Settings -> Scripting Runtime Version -> select Experimental (NET 4.6).
    So you change the version of the framework that Unity uses.

    • Thank you very much! How on Stackoverflow can you thank the person? - Andrew
    • @Andrew, well, you already did it - they said thanks and said the answer is true) - M. Green
    • Problems continue! I did everything as you said and yes, the version of the framework has changed, but when you turn on the check mark in the reference, the described error does not go away, but when you restart, the check mark is removed. - Andrew