Microsoft.Naming : 'Id' is an abbreviation and

  • Thread starter Thread starter Just D.
  • Start date Start date
J

Just D.

Maybe it's FAQ, please point me to the Internet link if it's so.

Do we have any way to disable this warning (below) in VS2005 when we do the
code analysis?
Microsoft.Naming : 'Id' is an abbreviation and therefore is not subject to
acronym casing guidelines. Correct the capitalization of 'ID'...

I'm using the names like PracticeID, ProviderID, etc. for thousands of times
both in C# and SQL scripts and I'm having a lot of warnings form the VS when
I analyze the code. I guess it doesn't mean that the compiled code will be
wrong, it works for already several years on the production server. I just
wondering if I can disable this warning to avoid losing all other warnings,
probably more important ones.

Thanks,
Just D.
 
In the Solution Explorer, double-click the "My Project" node to bring up the
project settings.
Select the "Code Analysis" tab.
Under the "Naming Rules" section, you can disable any rule that you wish.
But, you won't get the analysis for that rule applied to any of your code in
the project (what if you accidentially did have something named just "id"?).

-Scott
 
Back
Top