Measure and record C# code metrics.

SourceMonitor measures and records source code metrics. SourceMonitor parses ASCII source code looking for countable metrics items. As these items are identified, their counts are accumulated for each source code file, and within each function or method. These metrics are then accumulated into summary metrics for all files in each checkpoint.If you develop software with Visual Studio, you can add items to your tools menu in Visual Studio that invoke SourceMonitor. You can also operate SourceMonitor from a batch file using commands stored in a text file. SourceMonitor measures metrics for source code written in C++, C, C#, VB.NET, Java, Delphi, Visual Basic (VB6) or HTML.Exports metrics to XML or CSV for further processing with other tools.

C# Metrics

  1. Statements
  2. Percent Comment Lines
  3. Percent Documentation Lines
  4. Classes, Interfaces, Structs
  5. Methods per Class
  6. Statements per Method
  7. Calls per Method
  8. Maximum Method Complexity
  9. Maximum Block Depth
  10. Average Block Depth
  11. Average Complexity

Download SourceMonitor


Technorati Tags: ,,

Mass Downloader For .Net Framework – downloads .NET Reference Source Code in batch

MS has released the .NET Reference Source Code, you can only get it one file at a time while you’re debugging. If you’d like to populate the cache, you’d may use Mass Downloader For .Net Framework which allows you do download .Net Framework source code in batch.The Mass Downloader For .Net Framework enables offline debugging of .Net Framework in Visual Studio 2008/2005(including Express Editions).

For configuration details you can check out the article in

Download The Mass Downloader For .Net Framework


Technorati Tags: ,,

Pex – dynamic analysis and test generation tool for .NET from Microsoft

Pex (Program EXploration) is an assistant to the programmer.Pex takes test-driven development to the next level. Pex analyzes .NET programs. From a parameterized unit test, it automatically generates unit tests cases with high code coverage. In addition,when a generated test fails, it suggests to the developer how to fix the bugs.



  1. With Pex, you can write parameterized unit test methods and leave to Pex the task of deciding which input is relevant to cover the code (or find bugs). Actually, parameterized unit tests are nothing but specifications. Pex integrates ‘naturally’ with existing unit test framework (VSTS, NUnit, MbUnit, etc…) by providing a set of custom attributes to tag Pex classes and tests.
  2. Call Pex directly from Visual Studio to start exploring the parameterized unit tests.
  3. Pex runs the parameterized unit tests with different input values. Pex monitors the execution and figures out why the program executed the way it did. This is represented as a boolean function over the test parameters. Pex then uses a constraint solver to compute new parameter values that make the program execute in a different way.
  4. From the parameterized unit tests, Pex generates classic unit tests that can be re-executed without Pex. Pex also tags the generated tests with additional information using attributes (for tools) and xml documentation (for humans).
  5. While exploring parameterized unit tests, Pex explicitly looks for program errors such as index out of bound or failing user assertions. Pex reports dynamically detected errors in the code.
  6. Sometimes Pex can automatically fix bugs! When a test fails, Pex traces back the involved values. Pex suggests additional checks to prevent the failure from happening again. Those checks are argument or invariant validation.
  7. Pex summarizes all the possible fixes in a prioritized table with quick preview.
  8. Pex integrates generated tests automatically inside the test project. Pex also avoids duplicate tests and recycles obsolete tests.
  9. Pex comes with a command line tool to execute any assembly containing Pex tests. Great for automation!
  10. Pex generates detailed HTML reports about the exploration process. The reports contains details about each generated tests, path conditions, suggested fixes, etc…
  11. Pex generates code coverage reports for each test.
  12. Pex has a built-in support for mocking interfaces and virtual methods. Pex generates the return values of mocked methods just like it generates test input for parameterized unit tests.

Watch the screencast

Technorati Tags: ,,

Microsoft SharedView

Microsoft SharedView is a fast, easy way to share documents and screen views with small groups of friends or coworkers.Share, review, and update documents with up to 15 people in real time.A Windows Live ID (Passport, Hotmail, or MSN) is required to start sessions, but not to join sessions.


  • Sharing an Application or Desktop
  • Previewing what Attendees See
  • Pointing and Highlighting
  • Taking Control
  • Tracking Results in Word
  • Using Handouts
  • Managing and Monitoring Participation


    Download MS SharedView

    Technorati Tags: ,,
  • The Syndicated Client Experiences Starter Kit and Reader Software Development Kit

    SCE(Syndicated Client Experiences) applications are .Net applications that are deployed by web, occasionally connected, and fully exploitive of the desktop providing the optimal user experience for your content. The SC Reader application is a feature rich application that utilizes WPF’s layout capabilities and advanced text to present the best possible reading experience on any screen.

    • Readability and Rich document presentation
    • Personalization and Accessibility
    • Intuitive and Effortless Navigation
    • Commenting and Sharing
    • Mobility and Robustness
    • Premier Desktop Positioning
    • High Fidelity Printing
    • Support for numerous languages including Indic and East Asian languages.


    Included in SDK(available for download here):

    • Visual Studio and Expression projects
      • Sample Generic Reader (complete end to end sample, full source code)
      • MSDN Reader (application, feed and full sample source code)
      • Reader Quick Start wizard
      • Photos: a simple sample demonstrating a syndicated photo experience (full sample source code)
    • An integrated branded boostrapper for .Net 3.0 deployment and app installation via Click-Once
    • Content Sync Extensions for RSS 2.0 for rich, nested, authenticated feeds
    • SCE sync service and desktop UI redistributable components

    You can download the msdn reader(built using SCE SDK) here

    Check out the resources below for training videos to help you customize your Starter Kit application.

    Technorati Tags: ,,

    Page 2 of 812345...Last »