Hi ,
It will compile for the first few times actually. Please try the below steps:
1: Create a new blueprint project and add a new actor c++ class.
2: Let the VS automatically start after first compile and close the editor.
3: Now make a change inside the actor file (like comment or just remove and add semicolon) and compile.
4: Keep repeating step 3 and eventually after 1 or 2 compiles it will fail.
Please note I was using Visual Studio 2017 with the latest update (IIRC it was Update 2).