After pulling the project (WPF application) from git,
I get this error:
Look at your .csproj extension file search for: <<<<<< or ====== or >>>>>>>> and remove it.
also check your web.config file for those symbols and remove them too if they exist there.
I had the same issue, I was just missing a closing tag.
http://www.w3schools.com/xml/xml_validator.asp < try this
edit - Try to open your .csproj in an editor and look for the missing tags. You can do this via Visual Studio if you unload your project then edit your project.
I had some strange underscore lines, I am using the tool Git Extensions, maybe this tool added this lines.. I compared a older version in notepad++ and saw this. It didn´t show in Visual Studio.
It appears there were some unclosed tags in my .csproject file.
Strangely though, the error above was reported instead.
This forum really helped me. Thank you very much. In my case my team mate merged the code and in .csproj there was end tag missing for we had >. I opened .csproj in visual studio. Edited end tag to /> and saved the file and reloaded the project and it was fine.