Project Description
A set of coding guidelines for C# 3.0 and C# 4.0, design principles, layout rules, FxCop rulesets and (upcoming) custom FxCop and StyleCop rules for improving the overal quality of your code developement.

Background
Read the original release information here 

C# Coding Guidelines, not C# Coding Standard
We don't think that projects should be required to comply with rules, neither do we say which guidelines are more important than others. As such, you won't find a C# Coding Standard in the traditional form. However, we encourage projects to decide for themselves what guidelines are important, what deviations a project will use, who is the consultant in case doubts arise, and what kind of layout must be used for source code. Obviously, you should make these decisions before starting the real coding work.

Current Contents

  • A concept version of the new C# 3.0 and C# 4.0 Coding Guidelines is published regularly hereA cheat sheet of those guidelines, printable on one A4 sheet is available here as well.
  • Rule Sets with recommended FxCop rules for Line-of-Business applications and Framework/Class Libraries can be downloaded here
  • Preliminary work-in-progress of the FxCop and StyleCop rules is available under the Source Code tab.
  • The previous version, the C# 3.0 Coding Guidelines including a Quick Reference Sheet can still be downloaded here
  • A list of proposals of new guidelines to include in a next version of the document can be found here
  • A ReSharper 5 Code Layout template

Road Map

  • Full set of FxCop and StyleCop rules to accompany the guidelines.
Last edited Aug 20 at 5:13 PM by dennisdoomen, version 27

 

Want to leave feedback?
Please use Discussions or Reviews instead.

Updating...
© 2006-2010 Microsoft | Get Help | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2010.8.10.17093