In Unity goto "Edit->Preferences->Player" then find and set "Scripting Runtime Version*" to ".NET 4.x Equivalent"
In Unity:
- Goto "Window->Package manager->All" then find and install the IncrementalCompiler
- Goto "Unity Preferences->Compiler" and set "Enable building from IDE" to True