FxCopCmd 并不认为所有错误都是致命错误。 如果 FxCopCmd 有足够的信息来执行部分分析,它将执行分析并报告发生的错误。 错误代码是一个 32 位整数,包含与错误对应的数值的按位比较。 下表描述了 FxCopCmd 返回的错误代码: 错误数值 无错误0x0 分析错误0x1 ...
This document provides a brief overview of FxCopCmd, which is the command-line companion to the FxCop application. For a complete description of FxCopCmd, see Using FxCopCmd.FxCopCmd is useful for analyzing assemblies in an automated environment but it does not support creating or configuring...
Learn about the error codes that the FxCopCmd command returns. See which type of error each code represents, and find out how to recognize fatal errors.
FxCopCmd 傳回碼組件參考錯誤0x200 本身是警告而非錯誤。 此傳回碼表示缺少間接參考,但 FxCopCmd 能夠加以處理。 此警告表示有些分析結果可能已遭洩漏。 當組件參考錯誤與任何其他傳回碼結合時,將此視為錯誤。 程式碼分析應用程式錯誤 意見反映 此頁面有幫助嗎?
In your build script, call FxCopCmd to analyze your assemblies. Review the analysis report output from step 2. If new messages must be excluded, or other changes to the project are required, use the FxCop application to update your project and save your changes. Correct any code defects th...
Correct any code defects that are detected by FxCopCmd. If you are not using a project file to specify information to FxCopCmd with the/projectoption, you must supply an assembly using the/fileoption, and a rules directory using the/rulesoption. In either case, you must also specify the...