StyleCop Compliant Visual Studio Project & Item Templates
Welcome to the StyleCop Compliant Visual Studio project & item templates where you will the core project & item templates, from Visual Studio 2010 Ultimate, refactored to adhere to the code style requirements enforced by the current release of StyleCop.
Additional project & item templates will be provided for Windows Phone 7, Windows Azure, and Silverlight 4.0.
An associated project provides StyleCop Compliant Visual Studio Code Snippets and it is recommended to use these templates alongside the code snippets from that project.
Visual Studio 2010 item & project templates are installed in either of the following folders, depending upon the operating system architecture:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates
Visual Studio 2010 actually reads the templates from cache folders and not the above folders and so to complete the installation you'll need to refresh the cache by running the following command as an administrator. Within the Visual Studio 2010\Visual Studio Tools\ program folder you'll find a command prompt that will have the required path environment variable configured so that it will find the devenv.exe executable.
Running this command will not affect any changes you may have made to the Visual Studio options, such as fonts and font colors, although it will copy the templates from the above folders to the following cache folders.
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplatesCache
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplatesCache
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplatesCache
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplatesCache
As project and item templates are checked into the CodePlex source control system you can be assured that they are tested and have been verified against the current version of StyleCop and so you can use these templates immediately. You'll find the latest check-in by selecting Source Code in the CodePlex menu above.
It would be great to get feedback either through this Website or through twitter using #vstemplates or contact me directly using the twitter account @dougholland