Compartilhar via


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!

WCFConfig.xsd

Comments

  • Anonymous
    March 28, 2007
    Please check out the blog entry by govind: http://blogs.msdn.com/govindr/archive/2007/03/06/using-visual-studio-intellisense-to-edit-wcf-configuration-files.asp

  • Anonymous
    June 26, 2007
    Thanks for posting this.  This worked perfectly.    

  • Anonymous
    July 20, 2007
    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.

  • Anonymous
    August 15, 2007
    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.

  • Anonymous
    July 03, 2008
    Why this schema does not come along with the SDK ?

  • Anonymous
    August 18, 2008
    Thanks a lot for posting this .