Blog Archive

Search Blog

Blog List

Contact Me






Enter the code shown above in the box below
Send

 

Announcements

Recommended Websites

Events

Event StartEvent EndTitle

Recommended Reading

Most recent blog entries

Author: Darren McLeod Created: 10/16/2007 5:12 AM
These are my Blogs

 

Read More »

 

Read More »

C# comes with a refactoring tool built in, but for VB.NET instead of building it in, Microsoft just provides a link to a free add-in for VS 2005 & VS 2008 users by DevExpress.  You can download it here:

http://www.devexpress.com/Products/Visual_Studio_Add-in/VBRefactor/

I find it very handy especially Extract Method, Rename local, and Introduce Constant.


Darren

Oh and CreateOverload is very nice also.

Here is a good site for naming standards.

http://www.irritatedvowel.com/Programming/Standards.aspx

After upgrading from VS Team System 2005 to VS 2008 with Team Explorer I had a TestContext error when trying to run a unit test. I found the fix to the problem here: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2459840&SiteID=1
 
You have to change the reference to Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll from v8 to v9.

While at Tech-Ed 2008 in Orlando I picked up a copy of "Professional Refactoring in Visual Basic" by Danijel Arsenovski a Wrox Programmer to Programmer book by Wiley Publishing, Inc.  This book is absolutely the best book I have seen on doing object oriented VB.NET programming in the real world.  In my opinion it is absolutely required reading for anyone coding in VB.NET.

If you have an EnvDTE.Project reference to an existing Solution Folder you can add a solution folder like so:
 
C#

((EnvDTE80.SolutionFolder)root.Object).AddSolutionFolder("solutionFolder");

or VB

DirectCast(root.[Object], EnvDTE80.SolutionFolder).AddSolutionFolder("solutionFolder")

where "root" is the EnvDTE.Project reference to the existing Solution Folder.

To unlock a file in Team Foundation Server you have to issue the following command at the Visual Studio Command Prompt:
 
TF UNDO filename /WORKSPACE:workspace;checkout_user /SERVER:servername
 
Where you change the lower case words with your particular case.  For more information go here: