'Unity - Visual studio doesn't show errors. In the same time I can't hit "play" because Unity says "All errors have to be fixed"

If I create project outside of Unity let's say console aplication in C# I get normal errors, everything is okay.


For the example, script in Unity: float mouseX = Input.GetAxis("Mouse X")

clearly doesn't have ";" but VS shows nothing. Even If I find it in file explorer and open it through VS it shows no errors. Of course Unity gives ".cs(19,48): error CS1002: ; expected"


I would give you a screenshot but I can't (10 reputation required).



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source