No announcement yet.

Can't use vectors from Numerics

  • Filter
  • Time
  • Show
Clear All
new posts

    Can't use vectors from Numerics


    I am new to Bridge and am trying to port my C# .net library to javascript. The code uses the numerics namespace types Vector2, Vector3 and Quaternion. However I cannot manage to compile it with Bridge as it does not know those types. It gives the following compile error wherever those types are used:
    "The type 'ValueType' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib"

    These types should be available under .net framework:

    I have tried to include the numerics and numerics.vector reference, which didn't make a difference.
    I cannot reference 'mscorlib' as it states 'this component is already automatically referenced by the build system'. Including it by editing the project file didn't fix it.

    Does anyone know how to fix it?

    Preferably I do not want to have to define my own types.
    Last edited by Meessen; 2019-08-14 @ 10:40 AM.