Hi tehyosh,
Sorry for taking so long to get back to you. Are you still seeing the build error in Visual Studio? If so, could you please provide the exact steps that you are following from creating a new code project to when this error occurs in Visual Studio?
With regards to your question about Visual Studio and UE4 being installed on separate disks, that shouldn’t be a problem. I have Visual Studio installed on my C: drive, and all of my versions of UE4 are installed on the D: drive.