Skip to content

Coding and Standards

Damian edited this page Dec 17, 2020 · 1 revision

Coding Style

Xeno Innovations follows a mix of traditional and modern coding standards in our projects.

Formatting

  • We use .editorconfig style for enabling automatic code formatting.
  • Spacing
    • Replace Tabs with Spaces
    • Indent Size: 2 spaces
  • Private fields must begin with an _ (underscore)
  • Classes, Methods, and Properties are CamelCase and must not contain underscores.
  • Class names must match the file name
    • Only one class per-file

Project Configurations

.NET Standard

Projects (.csproj) that use the .NET Standard should include the following flag to disable the auto-creation of the sub-folder, netstandardX.X. After applying the change, projects will be built in the folder specified and not, SomeFolder\netstandard2.0 or SomeFolder\netcoreapp3.1

<PropertyGroup>
  <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
Clone this wiki locally