Visual Studio:HTML文件生成ResX错误

时间:2018-09-19 08:33:48

标签: html visual-studio intellisense resx

在我的项目中,我有很多html文件。对于每个文件,IntelliSense都会报告有关ResX输入无效的错误(并非总是如此,例如,当我切换分支时。重新打开解决方案之后,所有错误都消失了)

示例错误:

ResX input is not valid. Cannot find valid "resheader" tags for the ResX reader and writer type names.
ResX file Unexpected end of file has occurred. The following elements are not closed: input. Line 2, position 1. cannot be parsed.
ResX file There are multiple root elements. Line 9, position 2. cannot be parsed.
ResX file The 'input' start tag on line 31 position 12 does not match the end tag of 'form-control'. Line 36, position 11. cannot be parsed.

文件既没有设置Custom Tool也没有设置Custom Tool Namespace,整个目录都没有设置Build Action = NoneCopy to output Directory = Do not copy

是否可以忽略ResX验证程序的html文件?

  • Visual Studio Enterprise 15.8.4

0 个答案:

没有答案