Unity does not always compile the last version of my updated script

another issue I have in unity 2017 (it had appeared sometime in older versions too) is that when I save my script in visual studio 2017 (yes I had used vs 2017 in the old version too without any problem) I saw the compile icon in unity working, but the old script is executed instead. I should make a little change (make a space or new line) to force the compile again (maybe 2 times !) to see the new changes. this is very annoying

Same thing for me ! It is very, very, annoying!

In my case, it looks that avoiding to compile VS during Unity updates script, decreases the number of time it happens.

But it did not resolve the problem 100% of the time…

I am using 2017.20b9, still exist.

It seem that there is a solution in the latest patch for unity 2017.1.1p4