Here's a good article on how to do comments and tasks inside Visual Studio.  There are a lot of good tips in there, definitely a good read.

I figure I would share this as I’ve been having a heck of a time adding the NUnit test framework to ASP.NET MVC project in VS2008 Professional.  I’m running Windows 7 RTM 64-bit and most of the examples on the web don’t take into account the differences associated with a 64-bit OS.  So keep in mind this template is for a 64-bit OS, specifically Windows 7. 

To start, the path in the registry where the NUnit entries need to get added is:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0\MVC\TestProjectTemplates\NUnit\C#

Also, the template zip file needs to get copied to the following folder:

C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates\CSharp\Test\1033

A lot of people instruct people to place it one directory above the one I listed, which wouldn’t work for some reason.  I zipped everything up so just download the zip file, unzip it, and run the regnunittomvc.bat to install.  Also keep in mind that this will work with any version of NUnit.  I just installed this with NUnit 2.5.2.9222 and it worked beautifully.  I also included Rhino.Mocks with this template also (version 3.6).  Enjoy.

 

image image
   

Steve Dunn recently released a new version of his Windows Live Writer plugin that allows you to insert code into your blog posts that properly formats and highlights everything.  It’s customizable and easy to use with a plethora of options.  This is by far the best code formatter for Live Writer out there.  And best of all, its FREE!  Here are a few samples of the different formats you can use:

Highlighted code:

        /// <summary>
        /// Retrieves all articles.
        /// </summary>
        public override List<ArticleDetails> GetArticles(int pageIndex, int pageSize)
        {
            List<ArticleDetails> articles = new List<ArticleDetails>();
            using (SqlConnection cn = new SqlConnection(this.ConnectionString))

 

Formatted code:

        /// <summary>
        /// Retrieves all articles.
        /// </summary>
        public override List<ArticleDetails> GetArticles(int pageIndex, int pageSize)
        {
            List<ArticleDetails> articles = new List<ArticleDetails>();
            using (SqlConnection cn = new SqlConnection(this.ConnectionString))

 

Code as bitmap:

 

This is a great tool – you can download the plugin here.  Enjoy!