Skip to main content

HTML 5 Target Schema for Validation - Visual Web Developer 2010 Express

Adding HTML 5 to the choice of target schemas in Visual Web Developer 2010 Express (VWD 2010 Express) is fairly straightforward, thanks to a download from Mikhail Arkhipov which can be found on the Visual Web Developer Team Blog at http://blogs.msdn.com/b/webdevtools/archive/2009/11/18/html-5-intellisense-and-validation-schema-for-visual-studio-2008-and-visual-web-developer.aspx.

  • Download the html5.zip at the end of the above post.
  • Unzip the file.
  • Copy the html_5.xsd file to "C:\Program Files\Microsoft Visual Studio 10.0\Common7\Packages\schemas\html". This is the default installation set up location. If VWD 2010 Express has been installed in another location, the file needs to be placed in the "Microsoft Visual Studio 10.0\Common7\Packages\schemas\html" folder.

This is where there is a slight variation in the instructions detailed in Mikhail Arkhipov 's post. To get VWD 2010 Express to recognise HTML 5 as an option for target validation, a change needs to be made to the necessary registry file.

If using VWD 2010 Express on a 64 bit machine, edit HTML-5-Schema-Reg-x64-VWD.reg. If using VWD 2010 Express on a 32 bit machine, edit HTML-5-Schema-Reg-x86-VWD.reg.

For HTML-5-Schema-Reg-x86-VWD.reg change the following from:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VWDExpress\9.0\Packages\{1B437D20-F8FE-11D2-A6AE-00104BCC7269}\Schemas\Schema 23]
to:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VWDExpress\10.0\Packages\{1B437D20-F8FE-11D2-A6AE-00104BCC7269}\Schemas\Schema 23]

For HTML-5-Schema-Reg-x64-VWD.reg change the following from:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VWDExpress\9.0\Packages\{1B437D20-F8FE-11D2-A6AE-00104BCC7269}\Schemas\Schema 23]
to:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VWDExpress\10.0\Packages\{1B437D20-F8FE-11D2-A6AE-00104BCC7269}\Schemas\Schema 23]

  • Save the change.
  • Run the reg file ( either HTML-5-Schema-Reg-x64-VWD.reg or HTML-5-Schema-Reg-x86-VWD.reg).
  • Restart VWD 2010 Express.
  • Select Tools from menu bar.
  • Select Options.
  • Select Validation in the left hand menu of the Options window.
  • In the Target drop down, select HTML 5 which should now exist.
  • Click OK.

And that's it.

Comments

  1. When installing on a 64-bit system, I had to place the "html_5.xsd" file into the "Program Files (x86)..." location.

    ReplyDelete
  2. Hi Moweber,

    Thanks for highlighting this when installing on 64-bit systems.

    ReplyDelete
  3. Hey,

    I found this article when I was trying to install HTML5 intellisense in Visual Web Developer Express 2010. Thanks for the tip! Well spotted.

    Alan.

    ReplyDelete
  4. No probs Alan. Glad this post was of some help. Thanks for the comment.

    ReplyDelete

Post a Comment

Popular posts from this blog

EF CodeFirst Database.SetInitializser Requires Connection to 'master' Database Error

One of the features of EF CodeFirst is the ability to automatically drop and recreate a database if the model changes or if the database does not exist, which is pretty useful when just doing development work. In a web app this is done in the Global.asax file within "protected void Application_Start()" as per this post from Scott Guthrie -  http://weblogs.asp.net/scottgu/archive/2010/07/16/code-first-development-with-entity-framework-4.aspx . An example would be: protected void Application_Start() { Database.SetInitializer<yourdbcontex>(new DropCreateDatabaseIfModelChanges<yourdbcontext>()); AreaRegistration.RegisterAllAreas(); RegisterGlobalFilters(GlobalFilters.Filters); RegisterRoutes(RouteTable.Routes); } However when using the Database.SetInitializer and trying to rebuild the database, the following exception may be encountered, especially if using SQL Server Express: "This operation requires a connection to the 'master'...

Enable .NET 8 Preview in Visual Studio

Download the SDK using Download .NET 8.0 (Linux, macOS, and Windows) (microsoft.com)  and install it. To enable projects to target the .NET 8 preview framework, the preview option in Visual Studio needs to be enabled, otherwise the option to target .NET 8 will not be available as shown below when setting up a new project (or trying to upgrade an existing one). To allow .NET 8 Preview to be used as a target framework for projects, the preview option needs to be enabled in Visual Studio. Open Visual Studio and select "Continue without code" In Visual Studio, select Tools then Options In Options, under Environment, select Preview Features and enable Use previews of the .NET SDK.

.NET 8 Blazor Server App _Host Routing Internal Server Error

 When firing up a new Blazor Server App with .NET 8 Preview, the following error was occurring.   An unhandled exception occurred while processing the request. InvalidOperationException: Cannot find the fallback endpoint specified by route values: { page: /_Host, area: }. Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.DynamicPageEndpointMatcherPolicy.ApplyAsync(HttpContext httpContext, CandidateSet candidates) To resolve, the project file can be updated with   References https://github.com/dotnet/aspnetcore/issues/36535#issuecomment-919861308 More info available on UseRazorSourceGenerator at  https://learn.microsoft.com/en-us/aspnet/core/razor-pages/sdk?view=aspnetcore-7.0