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

前端 未结 3 1200
广开言路
广开言路 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:32

    I add a comment as the first line of the vm file, that way the file doesn't begin with a < and VS doesn't think it's an xml file.

    Just add ## as the first line of every file then close and reopen it.

提交回复
热议问题