2017-10-25 4 views
0

既存のビルド定義の中でCIのコード解析タスクを設定しようとしています。コードはうまくコンパイルされます。最小限のルールで実行するようにコード分析を構成しました。しかし、以下のエラーが表示されます(コンソールログからコピーされました)。コード解析FXCop VSTS 2015設定

Starting Code Analysis 
Include file: d:\a\1\s\bin\d:\a\1\s\bin\SampleAppCICD.dll 
/ruleset:+C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools\Rule Sets\ManagedMinimumRules.ruleset /Summary /out:d:\a\1\s\codeanalysisresult.html /verbose /outXsl:C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools\FxCop\xml\FxCopReport.xsl /applyoutXsl 
Microsoft (R) FxCop Command-Line Tool, Version 14.0 (14.0.25420.1) X86 
Copyright (C) Microsoft Corporation, All Rights Reserved. 
Loaded dataflowrules.dll... 
Loaded designrules.dll... 
Loaded globalizationrules.dll... 
Loaded interoperabilityrules.dll... 
Loaded maintainabilityrules.dll... 
Loaded mobilityrules.dll... 
Loaded namingrules.dll... 
Loaded performancerules.dll... 
Loaded portabilityrules.dll... 
Loaded reliabilityrules.dll... 
Loaded securityrules.dll... 
Loaded securitytransparencyrules.dll... 
Loaded usagerules.dll... 
Rule set found at 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools\Rule Sets\ManagedMinimumRules.ruleset' 
System.Management.Automation.RemoteException: * Analysis was not performed; at least one valid rules assembly and one valid 
Processed: ##vso[task.logissue type=error;]System.Management.Automation.RemoteException: * Analysis was not performed; at least one valid rules assembly and one valid 
System.Management.Automation.RemoteException: target file must be specified. 
Processed: ##vso[task.logissue type=error;]System.Management.Automation.RemoteException: target file must be specified. 
System.Management.Automation.RemoteException: * 1 total analysis engine exceptions. 

Configuration Screen shot

答えて

1

あなたはファイルの入力ボックスに指定されたファイルは、それはあなたが指定したビルドディレクトリに基づいており、間違っています。

例えば、SampleAppCICD.dllパスがd:\a\1\s\bin\SampleAppCICD.dllある($(build.sourcesDirectory)値がd:\ 1 \ Sを\)、次いでビルドディレクトリ入力ボックス:$(build.sourcesDirectory)\binファイルの入力ボックス:SampleAppCICD.dll

関連する問題