Using Visual Studio Intellisense to Edit WCF Configuration files.

If you are using Visual Studio 2005 below is how you can enable intellisense to edit your WCF config files. 

Copy the Attached WCF Configuration schema file to your VS installation folder at %Program Files%\Visual Studio 8\Xml\Schemas. You will find DotNetConfig.xsd in the same directory. Open this file in notepad and  following right after the xs:schema element add the below line,

<xs:include schemaLocation="WCFConfig.xsd" /> 

You will now have intellisense support for your WCF configuration files in VS!


Comments (6)

  1. Thanks for posting this.  This worked perfectly.    

  2. Brandon says:

    I was wondering if anyone has written an installer/script/Visual Studio Plugin etc. which can automatically modifiy the DotNetConfig.xsd as required.  Any advice on the best way to start such a task would be greatly appreciated.  

    thanks in advance.

  3. says:

    I know this might be a pipedream, but… I would love a common web location containing non-installed schemas so that I do not have to search for them in various microsoft forums and such – yes, I am a lazy searcher. The schema you made available here for wcf configuration is great. And in general I love intellisense while updating xml so that I do not have to remember the exact element and attribute names. For instance, the other day I needed to create a manifest file part by hand, and I found conflicting information about the exact namespace to use for various elements. After a bit of trial and error, I think I got it right. Later on I stumbled upon the manifest schema on msdn library, ugh.

    Thanks for the posting.

  4. mlh says:

    Why this schema does not come along with the SDK ?

  5. Thanks a lot for posting this .

Skip to main content