efficientcode.org

Where expert advice and streamlined resources come together to maximize coding efficiency.


Project maintained by gsdlogic Hosted on GitHub Pages — Theme by mattgraham
Home Coding Standards WPF

Coding Standards

  1. Naming Conventions: Code must adhere to the Microsoft Naming Guidelines.

  2. Code Analysis: Projects must enable and follow all rules provided by Code Analysis.

  3. StyleCop: Projects must enable and follow all rules provided by StyleCop.

  4. Compilation: Code must compile without any warnings or errors. Enable warnings as errors in all release configurations.

  5. Indentation:
    • Use spaces instead of tabs.
    • Use 2 spaces for indentation in JSON and SGML-based languages (e.g., XML, HTML).
    • Use 4 spaces for indentation in all other languages.
  6. Web API Design: Web API resources should follow a RESTful web API design, adhering to a level 2 or above maturity model.

Supporting Files

These files have been updated for Visual Studio 2022 version 17.12 and .NET 9: