Error creating a new Visual Studio c++ project

2019-09-21 01:47发布

问题:

As I try to create a new c++ project in Visual Studio I have the error

the project file could not be loaded. root element is missing

the error is at the Cpp.Win32.user.props(0,0)

do somebody know how to fix the error?

回答1:

Did you try deleting the following file: "C:\Users\YOURUSER\AppData\Local\Microsoft\MSBuild\v4.0\Micr‌​osoft.Cpp.Win32.user‌​.props" And restarting Visual Studio? It seems to be a common error.