I have the exact same problem. Running VS 2017 and Unreal Engine 4.17. I had older versions of UE and Visual Studio installed. It seems Unreal Engine still tries to generate new C++ projects as VS 2015 projects instead of 2017. Maybe UE has some setting somewhere that controls how new VS projects should be created, and didn’t override that once I installed VS 2017?
Here is the order I installed things in, maybe helpful:
- Installed UE 4.14 a few months ago
- Installed VS 2015 Community Edition with Update 1
- Installed UE 4.17 today
- Tried to create a UE C++ project. Received the C2338 Error shown above
- Installed VS 2017 Community Edition
- GOTO 4. Same problem
- Created Blueprint project and then set the Editor Config > Source to Visual Studio 2017 (was just set to Visual Studio)
- GOTO 4. Same problem
Additional info, the solution it does create is a VS 2015 solution. If I open that up in VS 2017, it shows (Visual Studio 2015) in the Solution Explorer next to the Project Name.
Is there a way we can reset the Unreal Engine to assume only VS 2017 is installed, and to create VS 2017 projects and solutions?