Home > Microsoft .Net Development Tips > .NET Developer > Check out FxCop for .NET managed code assemblies
Win Development Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

.NET DEVELOPER

Check out FxCop for .NET managed code assemblies


Ed Tittel, Contributor
04.28.2006
Rating: --- (out of 5)


Download Channel
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Managed code is program code that runs as part of the Common Language Runtime in a .NET environment. This gives such code access to automatic memory management, helps to ensure some degree of platform neutrality and enables simplified cross-language integration. In different terms, managed code is code that conforms to the .NET Framework, runs inside the .NET environment, and can use .NET managed facilities. If you want to learn more about why using managed code for .NET development is so important, check out the article at DataDirect entitled The Importance of Using Managed Code in .NET Development (and if you're really gung-ho, follow the numerous links available in that article's "Advantages of Managed Code" links section).

All this begs the question, "How can developers be sure that their code conforms to the .NET Framework and so forth?" That's where FxCop comes into play.

You'll find this excellent (and free) tool online at Microsoft's GotDotNet.com site on the FxCop Team Page. Implementations for both Versions 1.1 and 2.0 of the .NET Framework are available for there, and well worth checking out. Both GUI and command line versions of the tool are included among the executables that will be installed for either one. You'll also find a useful Readme file there and a somewhat dated but still valuable help file there as well (FxCop.chm is available only for version 1.32.0, which corresponds to the .NET Framework 1.1 version of FxCop itself). You can also find pointers to documentation and sample files there as well, to help you understand how to make use of the tool.

What the tool does is to inspect managed code assemblies and apply various types of tests—including reflection, MSIL parsing, and callgraph analysis—to inspect them for over 200 defects that might occur in one or more of the following areas:
More .NET add-ins
Mike Gunderloy's choice Windows developer downloads

  • Library design
  • Code localization
  • Naming conventions
  • Performance
  • Security
    There's even an active FxCop Managed Code Analysis Forum on MSDN where interested (and actual) users can turn for information or help from FxCop developers, experts, and other experienced users. The FxCop blog appears to be an extremely rich body of information and is even cited repeated for answers in the FxCop FAQ itself.

    Those who build managed code assemblies for .NET will find FxCop worth downloading, learning and using. Be sure to check it out.

    Ed Tittel is a full-time writer and trainer whose interests include XML and development topics, along with IT Certification and information security. Send comments, queries, or suggested topics or tools for review to Ed at etittel@techtarget.com.

    Rate this Tip
    To rate tips, you must be a member of SearchWinDevelopment.com.
    Register now to start rating these tips. Log in if you are already a member.


    Submit a Tip




    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



    RELATED CONTENT
    .NET Developer
    How to speed up Visual Studio 2008's slow WPF designer
    How to list fonts in WPF using markup extensions and data templates
    How to convince management to buy Microsoft Visual Studio 2008
    Microsoft webcast series previews new Visual Studio 2010 features
    New features in Windows 7 bring new UI considerations for developers
    User Account Control (UAC): How to develop code for standard users
    Introduction to Vista's user account control (UAC) for developers
    Visual Studio 2008 code metrics tools will help keep code clean
    Downloadable MSDN library released for VS 2008 SP 1
    Widgetbox provides good example of how to use Facebook Developer Toolkit

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary

    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



  • Database Programming Solutions - .NET XML, Visual Studio LINQ, ORM .NET
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts