2

我正在尝试指定一个规则集而不是规则程序集作为 fxcop msbuild 任务的一部分,但它目前不起作用。文档说它确实支持这一点。

http://www.msbuildextensionpack.com/help/3.5.11.0/html/a111be65-19a8-05e0-5787-c187c3ee65f2.htm

所以我已经声明了如下的构建任务......

<MSBuild.ExtensionPack.CodeQuality.FxCop
        TaskAction="Analyse"
        Ruleset="C:\FxCop\test.ruleset"
        Files="@(FXCopAssemblies)"
        OutputFile="$(PathCheckout)FXCop\fxcopreport.xml"
        LogToConsole="true"
        DependencyDirectories="@(DependencyDirectories)"/">

但 msbuild 输出返回以下错误

error MSB4064: The "Ruleset" parameter is not supported by the
"MSBuild.ExtensionPack.CodeQuality.FxCop" task. Verify the parameter exists   
on the task, and it is a settable public instance property.

我有第 4 版的 MS Build Extension Pack 4.0,所以它应该已经包含以下 fxcop 任务。

4

0 回答 0