Disable Visual Studio's validation of non-xml files that look like xml?

前端 未结 3 1213
广开言路
广开言路 2021-01-11 11:52

I have a bunch of Velocity template files in a Visual Studio 2008 project, the problem is that despite the fact that the extension is .vm instead of .xml<

3条回答
  •  粉色の甜心
    2021-01-11 12:37

    Xml errors usually only show if the file is open.

    You can normally disable it by not opening it into the xml editor; the errors don't normally stop a build - they just look like they do. Right click -> Open With... Source (Text) Editor (or HTML if you prefer) (and set as default).

提交回复
热议问题