NumericsConverter icon indicating copy to clipboard operation
NumericsConverter copied to clipboard

.NET 4 throws error

Open psydack opened this issue 4 years ago • 5 comments

I had this error when tried to use .net 4 (mono or il)

com.kuraiandras.numericsconverter\ConverterExtensions.cs(8,34): error CS0234: The type or namespace name 'Vector<>' does not exist in the namespace 'System.Numerics' (are you missing an assembly reference?)

psydack avatar May 26 '21 02:05 psydack

Isn't this a duplicate of #3 ?

KuraiAndras avatar May 26 '21 05:05 KuraiAndras

Yes, sorry, When I added Numerics.dll I can't use .NET 2.0, that's a bit strange.

psydack avatar May 26 '21 13:05 psydack

You mean that you could not add the System.Numerics.dll to Unity with the .Net Standard 2.0 profile?

KuraiAndras avatar May 26 '21 13:05 KuraiAndras

That's right.

Packages\NumericsTest\com.kuraiandras.numericsconverter\ConverterExtensions.cs(8,34): error CS0433: The type 'Vector<T>' exists in both 'System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

The libs is Numerics.dll from 46 folder image

psydack avatar May 26 '21 13:05 psydack

Did you try the dll from the netstandard2.0 folder?

KuraiAndras avatar May 26 '21 15:05 KuraiAndras