I created a project in Visual Studio 2017. It worked all fine when I initially created it. The next time when I tried to open the same project it gave an error as shown below
I had created that project in Visual studio 2017 itself and the next time as well I tried to open it with visual studio 2017. So doesn't seem to be a version related problem.
Also, I did not make any changes to the project after it worked last time. And when I click "OK", the solution does not load. Below is what in solution explorer.
I tried to research this error a bit and came across some links as below as even I am getting the exact same error as mentioned in those links. But those links didn't really help me. I tried to reload the project solution, but that didn't work.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/966fb9d0-5423-4810-b03b-94a5417831a5/these-projects-are-either-not-supported-or-need-project-behavior-impacting-to-open-this-version-of?forum=visualstudiogeneral
https://www.aspforums.net/Threads/120933/Visual-Studio-Error-These-projects-are-either-not-supported-or-need-project-behavior-impacting-to-open-this-version-of-Visual-Studio/
So, just in case anyone is interested to know, finally what worked for me is,
And I got the hint from https://forums.asp.net/t/1491251.aspx?Can+t+load+project+because+root+element+is+missing+
Thank you all those who helped me with my issue. Although I was able to solve my problem, if anyone knows, I would like to know the reason why I got that error and why just deleting the csproj.user file and reloading the project loaded my solution all good.
To add to this, when I created this solution initially and it worked all fine, I then shared it with my team member and that team member opened the project all fine and then shared it back to me without any changes. And then when I tried to open it again, I was unable to open the project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With