BrainDump
  Home arrow BrainDump arrow Working with LibCheck
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
BRAINDUMP

Working with LibCheck
By: O'Reilly Media
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2007-08-22

    Table of Contents:
  • Working with LibCheck
  • Using LibCheck
  • Generating the churn report
  • LibCheck options

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Working with LibCheck


    (Page 1 of 4 )

    In this fourth part to a multi-part series on code libraries, you'll learn how to use LibCheck. It is excerpted from chapter four of the book Windows Developer Power Tools, written by James Avery and Jim Holmes (O'Reilly; ISBN: 0596527543). Copyright © 2006 O'Reilly Media, Inc. All rights reserved. Used with permission from the publisher. Available from booksellers or direct from O'Reilly Media.

    4.4  Finding Changes Between Assembly Versions with LibCheck

    Assemblies may be changed many times throughout the life of a project due to the addition, removal, or modification of functionality. It is common to avoid upgrading to newer versions of an assembly when the code is shared within a company or throughout a community due to the fear of breaking changes.

    With LibCheck, a team can compare the public interfaces of two assemblies to determine whether any interfaces have been removed, added, or modified. Viewing the differences between two versions can alert a development team to unintended consequences of their changes and alert the consumers of an upgraded assembly if there is potential for modifications to have an impact on their code.

    LibCheck at a Glance

    Tool

    LibCheck

    Version covered

    1.0

    Home page

    http://www.microsoft.com/downloads/details.aspx?
    familyid=4B5B7F29-1939-4E5B-A780-
    70E887964165&displaylang=en

    Power Tools page

    http://www.windevpowertools.com/tools/145

    Summary

    Quickly get a picture of potentially breaking changes between assembly versions

    License type

    Microsoft EULA

    Online resources

    Blog

    Supported Frameworks

    .NET 1.0, 1.1, 2.0

    Related tools in this book

    Reflector.Diff, Reflector

    Getting Started

    LibCheck is available as a free download from Microsoft. The tool is distributed with the binaries, source code (C#), and tool-specification document. LibCheck is geared toward viewing breaking changes between versions of the .NET Framework, but it can be used to view breaking changes between any two assemblies.

    To set up LibCheck, download the file from Microsoft and run the self-extracting executable to unzip it to the location you specify. You will find three files: EULA.rtf, LibCheck Tool Specification.doc, and libcheckfiles.zip. Unzip libcheckfiles.zip to find the Visual Studio 2003 solution, the projects and their accompanying source files, and the other files that are required to build the LibCheck solution. LibCheck’s executable has already been built, so you don’t need to build the tool unless you plan to make modifications.

    The libcheck.sln file was built with Visual Studio 2003, but it is possible to open the solution with Visual Studio 2005 and allow the conversion wizard to convert the Visual Studio 2003 solution and projects to the new Visual Studio 2005 format.

    If you are interested in running the 2003 version of LibCheck, you can simply copy the contents of the Debug\bin or Release\bin directories, or run LibCheck from the extracted bin directory.

    LibCheck is a command-line executable, so it can easily be integrated into a NAnt or MSBuild project. To add LibCheck to an automated build process, simply call out to the LibCheck.exe executable with the appropriate arguments. The churn report generation process also generates an accompanying XML file with the results of the comparison. You can easily navigate this document with anXMLReaderor via XPath to determine whether there are any breaking changes.

    Churn describes how much of the code base or library has changed between two assembly versions.

    More BrainDump Articles
    More By O'Reilly Media


       · This article is an excerpt from the book "Windows Developer Power Tools," published...
     

    Buy this book now. This article is excerpted from chapter four of the book Windows Developer Power Tools, written by James Avery and Jim Holmes (O'Reilly; ISBN: 0596527543). Check it out today at your favorite bookstore. Buy this book now.

    BRAINDUMP ARTICLES

    - Internet Explorer 8 Review
    - Nilpo`s Top Windows Add-Ons
    - Beginning Silverlight 2.0 Development using ...
    - Fixing Vista`s Troubles
    - Preparing Windows Images for Mass Deployment
    - The Trouble With Vista
    - Slipstreamed and Unattended Windows Installa...
    - Microsoft Office SharePoint Server
    - Microsoft Office SharePoint Designer
    - Microsoft Windows SharePoint Services 3.0
    - Microsoft Live Mesh Overview
    - XAML Brushes and Silverlight
    - Silverlight and XAML Basics
    - Immortal XP
    - XAML Basics





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT