visual-studiovisual-studio-extensionstextmate

How do I fix 'Schema validation error' when trying to build project?


I'm trying to use the TextMate extension for Visual Studio to create custom highlighting, but when I try to build it I get the following error and I have no idea what it means even after trying to look for a solution. I have seen few people have same issue but have not found solution. This seems to happen on a fresh project, so there probably is some error in the template, but I can't find where it is.

Schema validation error for '..\obj\Debug\extension.vsixmanifest'. The http://schemas.microsoft.com/developer/vsx-schema/2011:Assets element is not declared.

How do I fix this error?


Solution

  • I did some tests, and I met the same issue. If I edited and changed the Identifier and Version Range, I found that the project could be built.

    For example, create a new Textmate Grammar Extension project and then the default source.extension.vsixmanifest file > Install Targets > Identifier and Version Range will be like following screenshot:

    default

    And the default values are

    “Microsoft.VisualStudio.Community [15.0, 17.0)” “Microsoft.VisualStudio.Community [17.0, 18.0)”

    I changed them to

    changed

    “Microsoft.VisualStudio.Community [15.0, 17.0)” or “Microsoft.VisualStudio.Community [15.0]” and then Rebuild the project, it could be built. You can have a try.

    Besides, I’m not sure if there are some conflicts, or maybe it’s a potential issue, I suggest you report this issue here: Textmate Grammar Template – Q&A, or Developer Community (from VS > Help > Send Feedback > Report a Problem)