Why Unity3d doesn't support System.Numerics

1. Question:

platform: Unity3d 2017.3.1 language: C-sharp
because you need to reference System.Numerics, but Unity"s solution project does not support direct reference to dll
, so I found System.Numerics.dll from C:Program Files (x86) Reference AssembliesMicrosoftFramework.NETFrameworkv4.6
to import into Assets, and an error occurred. (I have selected Script Runtime Version as .net version 4.6 at Edit-Project Settings-Player-Other Settings)

2, Code:

clipboard.png
System.Numerics.BigIntegerdll

3:

clipboard.png

4. What methods have you tried:

I have tried to use System.Numerics.dll under .net 3.5 to put it in Assets.
has not been resolved yet.

5. Thank you

C:Program Files (x86) Reference AssembliesMicrosoftFramework.NETFramework

you can find System.Numerics, interested in this directory and import it to Unity, to find the problem.

Mar.12,2021

you can get System.Numerics.dll and SystemNumerics.Vectors.dll files from the < Unity installation directory >\ Editor\ Data\ MonoBleedingEdge\ lib\ mono\ 4.5.

paste them into the Unity Asset folder.

seems to be solved in this way, probably because Unity3d does not directly support the dll of .net Framework, and the Dll in these directories is developed by Mono Developer.

additional steps:

create two text files in which mcs.rsp and csc.rsp, puts the following text.

-r:System.Numerics.dll-r:System.Numerics.Vectors.dll
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37dcc-e619.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37dcc-e619.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?