Question

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

Was it helpful?

Solution

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

OTHER TIPS

Just try this (based on a hunch more than any scientific reasoning). Close your project and run Visual Studio as an administrator. (Ctrl + Shift + Enter when the shortcut is selected).

Then open the project and navigate to the properties screen again and let us know what's there.

It's the language ("Enable XSD as...") that suggests to me that there may be some administrative privilege required to get this to work.

I'd imagine any subsequent instances would be fine then.

FWIW I maintain two separate shortcuts for VS, one with normal privileges and the other with elevated privileges.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top