简体   繁体   English

“ EnsureBindingRedirects”任务意外失败。 System.Xml.XmlException:XML注释不能包含“-”

[英]The “EnsureBindingRedirects” task failed unexpectedly. System.Xml.XmlException: An XML comment cannot contain '--'

Severity Code Description Project File Line Suppression State 严重性代码说明项目文件行抑制状态

Error       The "EnsureBindingRedirects" task failed unexpectedly. 
System.Xml.XmlException: An XML comment cannot contain '--', and '-' cannot be the last character. Line 261, position 7.

while building the solution above error is occurring in the project file. 在生成上述错误的解决方案时,项目文件中发生了错误。 i have checked the project file but no any comments present at that file. 我已经检查了项目文件,但是在该文件上没有任何评论。

Usually occurs when you merge your branch and comments in your web.config are messed up. 通常在合并分支时出现,并且web.config中的注释被弄乱了。 Just make sure that the config file is a valid XML file and you are sorted. 只需确保配置文件是有效的XML文件,即可对您进行排序。

In my case, it added comment character sequence <!-- without the closing part -->. 就我而言,它添加了注释字符序列<!--但没有结尾部分-->.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM