Code will update in Visual Studio but not in Unity

Having an issue with code compiling when making changes.

If I make any changes in a script, save them and go back to the Unity editor, the code won’t refresh. Even if the code has an error in Visual Studio, I can still run my Unity project.

I noticed this only happened since I updated to the latest version, 2019.1.5f1

Any ideas on how this can be fixed?

Go to edit → preferences → general and make sure Auto Refresh is checked.

If it is, if you have any compile errors, they can keep changes to scripts from updating.

Auto Refresh is already checked. I notice that the only way script changes are recognized in the Unity editor is if I right click the script, and click ‘Reimport’. Only then does the change / error appear in the console.

Restart Unity or Windows, sometimes that fixes things.