5.1 Error when creating new C++ template project

Solved by moving "c:\Program Files\dotnet" above "c:\Program Files (x86)\dotnet" for the “Path”-environment variable.