Can't load project after pulling: “Expected 'ENCODING' but found 'utf-8'.”

前端 未结 5 1344
既然无缘
既然无缘 2021-02-18 18:42

After pulling the project (WPF application) from git,

I get this error:

\"enter

相关标签:
5条回答
  • 2021-02-18 18:46

    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.

    0 讨论(0)
  • 2021-02-18 18:53

    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.

    0 讨论(0)
  • 2021-02-18 18:57

    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.

    0 讨论(0)
  • 2021-02-18 19:11

    It appears there were some unclosed tags in my .csproject file.

    Strangely though, the error above was reported instead.

    0 讨论(0)
  • 2021-02-18 19:12

    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.

    0 讨论(0)
提交回复
热议问题