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

前端 未结 30 2459
北荒
北荒 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条回答
  •  萌比男神i
    2020-12-01 09:16

    Deleting the .user file is exactly what fixed the problem for me. Lightning strike near the office shut my PC down and corrupted my .user file and project wouldn't load. I opened the file in Notepad++ and the "spaces" turned out to be [NULL] characters. Deleted the .user file and the file loaded!

    source https://forums.asp.net/t/1491251.aspx?Can+t+load+project+because+root+element+is+missing+

提交回复
热议问题