Create your own Code Analysis rule set using Visual Studio Team System 2010

In a previous post, I explained how to use Code Analysis in Visual Studio 2010 to detect dead code. In that post, I described the following five Code Analysis rules in detail and how these set of rules form the basis for detecting dead code: Private methods that are not called from any other code…


Visualize project dependencies with the Team System 2010 Architecture Explorer

As early as Visual Studio 2002, Visual Studio has supported the ability to see the dependencies between projects in a solution. However, the experience is somewhat clunky in that you can only see the dependencies one project at a time. In the example below, you can see the project dependencies for the Patient Monitoring project….


PDC 2009: Developing Quality Software using Visual Studio Team System 2010

Software quality is a subject that is near and dear to my heart. At PDC 2009 this year, there is full day workshop on how to use Visual Studio Team System 2010 to develop high quality software. I’m really excited about this workshop since it covers a lot of the features that my team works…


Catch string formatting bugs with Visual Studio Team System 2010

Formatting strings is a very common task in .NET development. Examples include formatting dates and currencies, composing a HTML response, creating error messages, etc. One of the downsides of string formatting is that if done incorrectly, you can end up with subtle bugs that won’t be detected until runtime at which point, the application usually…

1

Use UML Sequence Diagrams in Team System 2010 to reverse engineer your code

One of the new features that we have added in Visual Studio Team System 2010 is the ability to create a new UML Sequence Diagram as well as generate one from existing code. I’m not going to go into too much detail on what a UML sequence diagram is since there is a plethora of…


Walkthrough: Measure the performance of your JScript code with Team System 2010

In Visual Studio Team System 2010, one of the new features that we have added to the Profiler is the ability to measure the performance of JScript code that runs in the browser. This means that if you have a web application that contains ASP.NET AJAX or plain old JScript, you can now measure how…


Use Code Analysis to measure the quality of sample code

Sample code is great because it allows you to quickly get up to speed with a new technology or learn how an API works and sometimes, you might even use some of the code in your own application. The major downside of reusing sample code is that most often, the code wasn’t written with production…

1

Visual Studio Team System 2010 Profiler and Virtual Machines: Error VSP1454 is no more!

Prior to Team System 2010, if you try to profile an application on a virtual machine (e.g. Virtual PC, Hyper-V, VMWare) using sampling mode, this is the error that you will see: Unfortunately, if you want to use sampling mode, you’re pretty much stuck! The only "workaround" is to profile your application using instrumentation mode…


Troubleshooting Team Foundation Server 2010 Beta 1 error TF255275

When installing Team Foundation Server 2010 Beta 1, you might run across the following error during the readiness check: Error    [ Reporting ] TF255275: The following Web service for SQL Server Reporting Services could not be accessed: http://<machine_name>/ReportServer/ReportService2005.asmx. Warning    [ Project Collection ] TF255331: The existence of the following folder on the report server could…


Preventing SQL Injection Attacks with Visual Studio Team System 2010

There are numerous articles on the web that describe the perils of SQL Injection attacks and warn developers about the fact that "All Input is Evil!". If you are interested in reading more about what a SQL Injection attack is, Wikipedia has a pretty good introduction to the subject. There are a number of recommendations…