I’m left with the impression that when the user PATH contains all of those items previously mentioned then Visual Studio projects do not work correctly regardless if it is a CMake or Visual Studio template project. Maybe something about the PATH breaks the MSBuild command line tools in Visual Studio 2017.