C# FxCop不反映变化

C# FxCop不反映变化,c#,fxcop,C#,Fxcop,我正试着改变主意。应该没那么难。我正在看一个现有的项目,所以我想我应该从一个小助手库开始。它是我的公共库,具有扩展方法之类的功能 第一次在公共DLL上运行时,我使用扩展方法得到以下错误,我将其指向调试文件夹编译的DLL: CriticalWarning, Certainty 75, for IdentifiersShouldBeSpelledCorrectly { Target : #IsNullOrEmptyOrJustSpaces(System.String) (Introsp

我正试着改变主意。应该没那么难。我正在看一个现有的项目,所以我想我应该从一个小助手库开始。它是我的公共库,具有扩展方法之类的功能

第一次在公共DLL上运行时,我使用扩展方法得到以下错误,我将其指向调试文件夹编译的DLL:

CriticalWarning, Certainty 75, for IdentifiersShouldBeSpelledCorrectly
{
Target       : #IsNullOrEmptyOrJustSpaces(System.String)  (IntrospectionTargetMember)
Id           : s  (String)
Location     : file:///C:/hoh_code/bailey_dev/Bailey/trunk/source/Bailey.Common/Extensions/StringExtensions.cs<9>  (String)
Resolution   : "In method 'StringExtensions.IsNullOrEmptyOrJustSpaces(
               this string)', consider providing a more meaningful 
               name than parameter name 's'."
Help         : http://msdn2.microsoft.com/library/bb264492(VS.90).aspx  (String)
Category     : Microsoft.Naming  (String)
CheckId      : CA1704  (String)
RuleFile     : Naming Rules  (String)
Info         : "The individual words that make up an identifier should 
               not be abbreviated and should be spelled correctly. 
               If this rule generates a false positive on a term that 
               should be recognized, add the word to the FxCop custom 
               dictionary."
Created      : 04/02/2010 12:58:50  (DateTime)
LastSeen     : 04/02/2010 12:58:50  (DateTime)
Status       : Active  (MessageStatus)
Fix Category : Breaking  (FixCategories)
这个类以前看起来像这样:

using System;

namespace Bailey.Common.Extensions
{
   public static class StringExtensions
   {
       /// <summary>
       /// Checks that a string is either, NULL an Empty String or contains only spaces.
       /// </summary>
       /// <param name="s">The string to be checked</param>
       /// <returns>bool value</returns>
       public static bool IsNullOrEmptyOrJustSpaces(this string s)
       {
           return (s == null || s.Trim() == String.Empty);
       }
   }
}
using System;

namespace Bailey.Common.Extensions
{
    public static class StringExtensions
    {
       /// <summary>
       /// Checks that a string is either, NULL an Empty String or contains only spaces.
       /// </summary>
       /// <param name="stringToBeChecked">The string to be checked</param>
       /// <returns>bool value</returns>
       public static bool IsNullOrEmptyOrJustSpaces(this string stringToBeChecked)
       {
           if (String.IsNullOrEmpty(stringToBeChecked)) { return true; }
           return String.IsNullOrEmpty(stringToBeChecked.Trim());
       }
    }
}
现在看起来是这样的:

using System;

namespace Bailey.Common.Extensions
{
   public static class StringExtensions
   {
       /// <summary>
       /// Checks that a string is either, NULL an Empty String or contains only spaces.
       /// </summary>
       /// <param name="s">The string to be checked</param>
       /// <returns>bool value</returns>
       public static bool IsNullOrEmptyOrJustSpaces(this string s)
       {
           return (s == null || s.Trim() == String.Empty);
       }
   }
}
using System;

namespace Bailey.Common.Extensions
{
    public static class StringExtensions
    {
       /// <summary>
       /// Checks that a string is either, NULL an Empty String or contains only spaces.
       /// </summary>
       /// <param name="stringToBeChecked">The string to be checked</param>
       /// <returns>bool value</returns>
       public static bool IsNullOrEmptyOrJustSpaces(this string stringToBeChecked)
       {
           if (String.IsNullOrEmpty(stringToBeChecked)) { return true; }
           return String.IsNullOrEmpty(stringToBeChecked.Trim());
       }
    }
}
我尝试过重新运行FxCop,删除编译后的DLL,删除整个库,并将其从SVN中拉出,然后重新启动机器,但仍然出现相同的错误

据我所知,这可能是错误的,错误应该不再出现,因为我已经修复了糟糕的命名和注释,构建、重建和清理了项目,但它仍然说我做错了

我的最终目标是通过我的新CI服务器运行它,并保存到一个文件中,但我不想走那么远,直到我的头脑中的基本工作和清洁

有人能帮我理解我哪里出了问题吗

谢谢

编辑


我想我一定是指向了错误的DLL,我发誓我检查了路径,我知道我至少有一次去C的根目录下追溯路径来检查它。它现在在库中加载了更多错误,并反映了我每次所做的更改。

您确定FXCop指向了正确的目标吗?我犯了一个错误,把它指向了一个发布dll,但是一直在调试中编译。一定是做了什么蠢事。