using UnityEngine.UI for dll Library

Hey guys, quick question:
I want to make a dll file with some classes using UnityEngine.UI, but I can’t get it to work.
I’ve tried in Visual Studio, Visual Studio Code and Monodevelop, it’s the same everywhere,
UnityEngine works just fine but UnityEngine.UI just throws errors.

5070503--498521--UInotworking.PNG

Also I’m not sure if this is the right Subforum.
Kind regards and thanks in advance.

It seems that starting in Unity 2019.2, the UI component has been moved into Package Manager.

There’s an explanation in this post