diff --git a/doc/reference/src/images/resharper-live-templates.png b/doc/reference/src/images/resharper-live-templates.png index e1efc005..f3fa4789 100644 Binary files a/doc/reference/src/images/resharper-live-templates.png and b/doc/reference/src/images/resharper-live-templates.png differ diff --git a/doc/reference/src/images/vsnet-ado-sln.png b/doc/reference/src/images/vsnet-ado-sln.png new file mode 100644 index 00000000..8c5d42ca Binary files /dev/null and b/doc/reference/src/images/vsnet-ado-sln.png differ diff --git a/doc/reference/src/images/vsnet-classlib-sln.png b/doc/reference/src/images/vsnet-classlib-sln.png new file mode 100644 index 00000000..0bd0e05a Binary files /dev/null and b/doc/reference/src/images/vsnet-classlib-sln.png differ diff --git a/doc/reference/src/images/vsnet-nh-sln.png b/doc/reference/src/images/vsnet-nh-sln.png new file mode 100644 index 00000000..1282cffa Binary files /dev/null and b/doc/reference/src/images/vsnet-nh-sln.png differ diff --git a/doc/reference/src/images/vsnet-web-sln.png b/doc/reference/src/images/vsnet-web-sln.png new file mode 100644 index 00000000..41c76525 Binary files /dev/null and b/doc/reference/src/images/vsnet-web-sln.png differ diff --git a/doc/reference/src/vsnet.xml b/doc/reference/src/vsnet.xml index db6fcf86..f802437e 100644 --- a/doc/reference/src/vsnet.xml +++ b/doc/reference/src/vsnet.xml @@ -25,8 +25,6 @@ Visual Studio.NET Integration - - XML Editing and Validation Most of this section is well travelled territory for those familiar @@ -57,7 +55,7 @@ can get intellisense and validation support while editing a Spring configuration file in VS.NET 2005/2008. In order to get this functionality in VS.NET 2002/2003 you will need to register the schema with VS.NET or - include the schema as part of your application project. + include the schema as part of your application project. <?xml version="1.0" encoding="UTF-8"?> <objects xmlns="http://www.springframework.net" @@ -75,10 +73,10 @@ It is typically more convenient to install the schema in VS.NET, even for VS.NET 2005/2008, as it makes the xml a little less verbose and you don't need to keep copying the XSD file for each project you create. - For VS.NET 2003 the schema directory is + For VS.NET 2003 the schema directory is - + <title> @@ -93,28 +91,22 @@ VS.NET 2003 - - C:\Program Files\Microsoft Visual Studio .NET - 2003\Common7\Packages\schemas\xml - + C:\Program Files\Microsoft Visual Studio .NET + 2003\Common7\Packages\schemas\xml VS.NET 2005 - - C:\Program Files\Microsoft Visual Studio - 8\Xml\Schemas - + C:\Program Files\Microsoft Visual Studio + 8\Xml\Schemas VS.NET 2008 - - C:\Program Files\Microsoft Visual Studio - 9.0\Xml\Schemas - + C:\Program Files\Microsoft Visual Studio + 9.0\Xml\Schemas @@ -132,8 +124,7 @@ Once you have registered the schema with VS.NET you can adding only the namespace declaration to the objects element, - - <?xml version="1.0" encoding="UTF-8"?> + <?xml version="1.0" encoding="UTF-8"?> <objects xmlns="http://www.springframework.net"> <object id="..." type="..."> ... @@ -142,10 +133,7 @@ ... </object> ... -</objects> - - - +</objects>Once registered, the namespace declaration alone is sufficient to get intellisense and validation of the configuration file from within @@ -182,8 +170,6 @@ </configuration> - - In this case VS.NET 2003 will still provide you with intellisense help but you will not be able to fully validate the document as the entire schema for App.config is not known. To be able to validate this document @@ -205,12 +191,115 @@ - XML Type Completion in VS.NET using Resharper + Solution Templates + + Solution templates for VS.NET 2008 are provided to get you up and + running quickly with a Spring.NET based application or library. Four + templates are provided and there are plans for more. All the templates + aside from the web template have been created using SolutionFactory VS.NET + Add-in. + + To install the templates + + + + Add the registry key + [HKEY_CURRENT_USER\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\MyAssemblies] + and set the value to be the directory + <spring.net-install-directory\bin\net\2.0 + + + + In the directory + <spring.net-install-directory>\dev-support\vs.net-2008 + run the batch file install-templates.bat + + + + In VS.NET 2008 when you create a new project you will see the + category Spring.NET and the four solution templates as shown below + + + + + + + + All of the templates have the required Spring dependencies set and + Spring application configuration files are present and ready for you to + add object definitions. + + + Class Library + + The simplest of the solution templates is the Spring Class + Library. This creates a solution with two class library projects, one + for you application classes that will be managed by Spring and another + testing project. The projects have starter files to write XML based + object definitions and also refer to Spring.NET .dlls as needed. The + testing project refers to Spring.Testing.NUnit which provides + integration testing support. A screen shot of the generated Class + Library solution is shown below. + + + + + + + + + + ADO.NET based application library + + This solution template provides a service layer project, ADO.NET + based data access layer and an unit/integration testing project. + + + + + + + + + + NHibernate based application library + + This solution template provides a service layer project, + NHibernate based data access layer and an unit/integration testing + project. + + + + + + + + + + Spring based web application + + This solution template provides a Spring based web layer project, + service layer project, ADO.NET based data access layer project and an + unit/integration testing project. You will need to set the reference of + the App.Web project to refer to the App.Web.References project manually. + + + + + + + + + + + + Resharper Type Completion Resharper supports intellisence completion for the value of the type attribute when editing Spring's XML files. The key combination is Shift+Alt+Space. This is shown below for the case of specifying the type - of a DAO object in the NHibernate sample application + of a DAO object in the NHibernate sample application @@ -277,8 +366,11 @@ For example, to set a property reference for the object definition - from the previous chapter, type 'odref' and you will be prompted to hit - 'tab' to complete the XML fragment. + from the previous chapter, type 'odpr' (Object Definition + Property Reference) and you will be prompted to hit 'tab' to + complete the XML fragment. @@ -287,7 +379,7 @@ Hitting tab will generate the XML to use for an object property - values, object constructors and object definitions. + values @@ -306,8 +398,9 @@ - There are similar live templates for object definitions, object - property values, and object constructors. + There are similar live templates for object property values + (odpv), object constructors (odctor) + and object definitions (odef) @@ -315,8 +408,8 @@ The latest version of the schema will always be located under http://www.springframework.net/xsd/ The filename of the - .xsd files contains the first Spring.NET version to which they apply. - + .xsd files contains the first Spring.NET version to which they + apply. @@ -327,6 +420,6 @@ 1.1 and one for .NET 2.0/3.0. They differ only in the format applied and the versions of VS.NET that supported. There is also standalone HTMLHELP format API documentation. You will need to download the help file - seperately from the distribution. + seperately from the distribution.