How to run meta inspector on program?

Posted on 2009-02-13
Last Modified: 2012-05-06
I'd like to run a program that will inspect certain rules are being followed in code.  For example, if the architecture is MVC, I want to make sure that there are no components from the View being used in the Controller.  This rule is a matter of checking that "Using MyApp.View" isn't in any of the Controller assembly files and also there are no direct references to this namespace in inline code.  How would I go about doing that type of inspection?

The program will run through Nant or post build in VS.NET.
Question by:brettr
    LVL 19

    Accepted Solution


    Author Comment

    You mean adding custom rules?  Any examples?
    LVL 19

    Expert Comment

    No sorry I just suspected it might be the right tool but don't actually have much experience with it.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now