PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, November 21, 2022

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

 November 21, 2022     textmate, visual-studio, visual-studio-extensions     No comments   

Issue

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)



Answered By - Tianyu
Answer Checked By - David Marino (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing