I went trough a similar problem and the solution was to remove from your project folder :
**.vs , Binaries, Build, DerivedDataCache,Intermediate and the .sln file. **
and after right click on your .uproject and generate VS project files
and BUILD.