Well, I'm having a problem with VS 2017 when compiling or even pulling a code via Git ...
VS 2017 only recognizes the new code if I do some of the following: close and reopen it, insert a file (it happens that when I pull a code via Git, the solution can not find the references of the namespaces, so I have to create a random file just to recognize the references and then delete it), clean VS Temp folders.
It turns out that this is very annoying to do, even more having to do this in every new build ...