wcfvisual-studio-2012xsdschemacontract-first

Enable XSD as Type Definition Language is Disabled


I came from this question : How to install Contract-First Tool in VisualStudio 2012

When I tried to perform the steps mentioned by the answer of that question, which is also what is mentioned in the topic Contract-First Tool, I faced the following problem: The options Enable XSD as type definition language and Validate WCF configuration when building the project are disabled.

The XML Schema generated is valid and it was taken from the aforementioned tutorial.

Why is that happening?

Options disabled


Solution

  • Your assembly needs to target .NET 4.5 for this option to be enabled.