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.

MS Build Extension Pack 4.0 のバージョン 4 を使用しているため、次の fxcop タスクが既に含まれているはずです。

4

0 に答える 0