I’m using Unity 2017.1.0f3 with MSVC 2017 as my script editor. I disabled automatic refresh because it frequently does not detect changes. When I save a script in MSVC and manually refresh in Unity, I can see the changes in the inspector. But the old version of the script still runs when I click play! If I rebuild the project in MSVC, the old version still runs. Even exiting and restarting Unity does not help.
I’m certain that the old version is still running because it’s throwing an exception with a message that I wrote myself as a test, and subsequently removed from the code.
How do I get Unity to start using the new version of a script?