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

前端 未结 30 2464
北荒
北荒 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:39

    In my case, when I opened the .csproj file, it was empty so I went to my previous commit in git and copied the contents of that file and pasted it my current .csproj file. After which I deleted the .csproj.user file, reloaded my project, and everything started working again.

提交回复
热议问题