Hi Hem

You may get more input on this from a mailing list dedicated to FxCop
or possibly even NAnt. This mailing list focuses on CruiseControl.Net.

I do know you can select rules by modifying your test.fxcop file in
the fxcop gui.

Dave Cameron
CruiseControl.NET - http://ccnet.thoughtworks.com

On Wed, Mar 4, 2009 at 12:59 AM, Hem <[email protected]> wrote:
>
> Hi,
>
> Can we Enable/Disable  the Fxcop rules In Nant build file.
>
> For Example In Fxcop
> DesignRules
> GlobalizationRulesl
> InteroperabilityRules
> MobilityRules
> NamingRules..
> ...
> ...
>
> Default all rules are Enable.
> Now i don't want to run all the rules i want to run only NamingRules
> and DesignRules.
>
> am using below task in nant build file but its running all the rules.
>
> <target name="runFxCop">
>        <exec program="C:\Program Files\Microsoft FxCop 1.35\FxCopCmd.exe"
>                commandline="/p:test.fxcop /o:E:\fxcopPeirtest2.xml"
> failonerror="false"/>
> </target>
>
>
> Thanks in advance.

Reply via email to