Adliance.Buddy.CodeStyle 8.2.0.2

Prefix Reserved
dotnet add package Adliance.Buddy.CodeStyle --version 8.2.0.2
                    
NuGet\Install-Package Adliance.Buddy.CodeStyle -Version 8.2.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Adliance.Buddy.CodeStyle" Version="8.2.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Adliance.Buddy.CodeStyle" Version="8.2.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Adliance.Buddy.CodeStyle" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Adliance.Buddy.CodeStyle --version 8.2.0.2
                    
#r "nuget: Adliance.Buddy.CodeStyle, 8.2.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Adliance.Buddy.CodeStyle@8.2.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Adliance.Buddy.CodeStyle&version=8.2.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Adliance.Buddy.CodeStyle&version=8.2.0.2
                    
Install as a Cake Tool

Adliance.Buddy.CodeStyle

This package is used to distribute a common .editorconfig file. During the build an .editorconfig file is copied from the nuget package to the project folder.

Usage

Add a Directory.Build.props file to your solution root with the following content. Replace the version by the desired nuget package version. Now the Nuget package will be installed to all projects. Alternatively the nuget package can also be directly installed in each project if desired.

<Project> 
  <PropertyGroup>
    <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> 
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Adliance.Buddy.CodeStyle" Version="1.0.0">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles;analyzers</IncludeAssets>
    </PackageReference>
 </ItemGroup>
</Project>

The copied .editorconfig files from the nuget package should be ignored via your .gitignore file.

dotnet format

The dotnet format command also picks up the .editorconfig files.

It can be used to format and apply fixes automatically wherever possible.

dotnet format --verify-no-changes can be used to verify if there are potential issues or not.

https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-format

EnforceCodeStyleInBuild

When the CodeStyle is enforced during build the warnings/errors are only displayed on clean builds.

Possibility for clean builds:

  • use dotnet clean before dotnet build
  • delete bin and obj directories
  • dotnet build --no-incremental

Incremental builds do not show any warnings/errors as the build is potentially cached locally.

CI

The .editorconfig files must be in place in all project directories before formatting/building in a CI environment to ensure it is picked up correctly.

This can be done for each project with these commands:

  1. restore all packages with dotnet restore
  2. execute the target from the nuget package manually to copy the .editorconfig file dotnet msbuild /t:CopyEditorConfig

This can be executed like this in an Azure DevOps Pipeline:

steps:
  - task: DotNetCoreCLI@2
    displayName: 'Restore'
    inputs:
      command: restore
      projects: '**/*.csproj'
  - task: DotNetCoreCLI@2
    displayName: 'CopyEditorConfig'
    inputs:
      command: custom
      custom: 'msbuild'
      arguments: '/t:CopyEditorConfig'
      projects: '**/*.csproj'`
  - task: DotNetCoreCLI@2
    displayName: 'Lint'
    inputs:
      command: custom
      projects: '**/*.csproj'
      custom: format
      arguments: '-v d --verify-no-changes'
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on Adliance.Buddy.CodeStyle:

Package Downloads
Adliance.OtysClient

Package Description

Adliance.AspNetCore.Buddy.GuiKit

Library of CSS, JavaScript, TagHelpers and layouts for a commonly shared Adliance UI.

Adliance.SalesforceClient

Package Description

Adliance.AspNetCore.Buddy.GuiKit.Infrastructure

Application Insights and Azure Key Vault setup for Adliance ASP.NET Core applications, enabled only when configured.

Adliance.Kimai.Client

Client library for the Kimai API.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
8.2.0.2 0 12/2/2026
8.2.0.1 3,643 10/5/2026
8.0.0.10 32,092 5/18/2025
8.0.0.9 1,814 4/4/2025
8.0.0.8 11,986 7/25/2024
8.0.0.7 17,209 7/2/2024
8.0.0.6 412 6/24/2024
8.0.0.5 3,017 3/15/2024
8.0.0.2 282 6/24/2024
8.0.0.1 301 4/11/2024
7.0.0.11 3,110 11/22/2023
7.0.0.10 269 11/20/2023
7.0.0.6 383 10/25/2023
7.0.0.5 288 10/23/2023
7.0.0.4 3,513 8/21/2023
7.0.0.3 320 8/21/2023
7.0.0.2 600 6/26/2023