How to fix “Root element is missing.” when doing a Visual Studio (VS) Build?
In my case it was the xxxxxxxxxxxx.vcxproj.user file that was causing the problem; it was blank after a crash. I renamed it and the problem went away.
In my case it was the xxxxxxxxxxxx.vcxproj.user file that was causing the problem; it was blank after a crash. I renamed it and the problem went away.
I had the same issue and find an easier solution It is due to Vs2012 adding the following to the csproj file: <PropertyGroup> <VisualStudioVersion Condition=”‘$(VisualStudioVersion)’ == ””>10.0</VisualStudioVersion> <VSToolsPath Condition=”‘$(VSToolsPath)’ == ””>$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> </PropertyGroup> You can safely remove that part and your solution will build. As Sielu pointed out you have to ensure that the .proj file … Read more