Wednesday, May 28, 2008

Enable IntelliSense support for Spring.Net objects xml definition

Spring.Net has integration support with VS 2005 and VS 2008 (also supports older versions). To achieve this, just perform a simple copy-paste and define an XML namespace on the objects node. This will enable you to get IntelliSense and validation support while editing the objects node of the xml configuration file.

Two steps:

Step 1: Copy the <Spring.Net Installed location>\doc\schema\spring-objects-1.1.xsd to <Visual Studio installed location>/Xml/Schemas

Step 2: Make sure your objects node looks like this

<objects xmlns="http://www.springframework.net">
...
</objects>

With this IntelliSense support you will surely feel happy while editing the xml file!