How to fix “Root element is missing.” when doing a Visual Studio (VS) Build?

前端 未结 30 2445
北荒
北荒 2020-12-01 09:13

How to fix \"Root element is missing.\" when doing a Visual Studio (VS) Build?

Any idea what file I should look at in my solution?

Actually, I am getting thi

30条回答
  •  温柔的废话
    2020-12-01 09:26

    In my case I upgraded to VS2017 and wanted to build all projects with MSBuild 4 with my build script (which had been using MSBuild 3.5 when we were using VS2015). That MSBuild upgrade appeared fine for the Windows desktop applications but the ones for Windows CE with compact framework would give me this confusing error. Reverting to MSBuild 3.5 for Windows CE projects fixed the issue for me.

    I did have the BOM in .csproj files by the way and removed them for all projects in a solution that would not build but that did not help.

提交回复
热议问题