Visual Studio 2017 not detecting changes in CUDA .cu files

I managed to solve this editing the .targets file installed by NVIDIA, but now VS is not able to add any dependencies of the .cu (includes) to the tlog files, so if I change any .cu header, I need to force rebuild all my .cu files, which is quite time consuming.