Microsoft.CodeAnalysis.CSharp.CodeStyle 5.0.0-2.final

Prefix Reserved
This is a prerelease version of Microsoft.CodeAnalysis.CSharp.CodeStyle.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Microsoft.CodeAnalysis.CSharp.CodeStyle --version 5.0.0-2.final
                    
NuGet\Install-Package Microsoft.CodeAnalysis.CSharp.CodeStyle -Version 5.0.0-2.final
                    
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="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="5.0.0-2.final">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.CodeStyle" Version="5.0.0-2.final" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeStyle">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
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 Microsoft.CodeAnalysis.CSharp.CodeStyle --version 5.0.0-2.final
                    
#r "nuget: Microsoft.CodeAnalysis.CSharp.CodeStyle, 5.0.0-2.final"
                    
#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 Microsoft.CodeAnalysis.CSharp.CodeStyle@5.0.0-2.final
                    
#: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=Microsoft.CodeAnalysis.CSharp.CodeStyle&version=5.0.0-2.final&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.CodeAnalysis.CSharp.CodeStyle&version=5.0.0-2.final&prerelease
                    
Install as a Cake Tool

.NET Compiler Platform ("Roslyn") code style analyzers for C#.
   
     More details at https://aka.ms/roslyn-packages
     This package was built from the source at https://github.com/dotnet/roslyn/commit/1ff281352c76f1a56ae8e49af9c4c4ef0e0f0f42.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Microsoft.CodeAnalysis.CSharp.CodeStyle:

Package Downloads
Lombiq.Analyzers

Lombiq .NET Analyzers: .NET code analyzers and code convention settings for general .NET projects. See the project website for detailed documentation.

Aksio.Defaults

Package Description

Aksio.Defaults.Specs

Package Description

Tdg5.StandardConventions

Standard conventions for C# projects.

GitHub repositories (30)

Showing the top 20 popular GitHub repositories that depend on Microsoft.CodeAnalysis.CSharp.CodeStyle:

Repository Stars
dotnet/runtime
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
unoplatform/uno
Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
hardkoded/puppeteer-sharp
Headless Chrome .NET API
dotnet/sdk
Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
DotNetAnalyzers/StyleCopAnalyzers
An implementation of StyleCop rules using the .NET Compiler Platform
nunit/nunit
NUnit Framework
microsoft/kernel-memory
Research project. A Memory solution for users, teams, and applications.
dotnet/android
.NET for Android provides open-source bindings of the Android SDK for use with .NET managed languages such as C#
dotnet/project-system
The .NET Project System for Visual Studio
MonoMod/MonoMod
C# modding swiss army knife, powered by cecil.
dotnet/dotnet
Home of .NET's Virtual Monolithic Repository which includes all the code needed to build the .NET SDK.
microsoft/Microsoft.Unity.Analyzers
Roslyn analyzers for Unity game developers
moq/labs
The most popular and friendly mocking framework for .NET
microsoft/CsWinRT
C# language projection for the Windows Runtime
DataDog/dd-trace-dotnet
.NET Client Library for Datadog APM
Richasy/FantasyCopilot
A new-age AI desktop tool
MelbourneDeveloper/RestClient.Net
The safest way to make REST calls in C# with an MCP Generator
NLua/KeraLua
C# Native bindings of Lua 5.4 (compatible with .NET/iOS/Mac/Android/UWP)
Analogy-LogViewer/Analogy.LogViewer
A customizable Log Viewer with ability to create custom providers. Can be used with C#, C++, Python, Java and others
bartoszlenar/Validot
Validot is a performance-first, compact library for advanced model validation. Using a simple declarative fluent interface, it efficiently handles classes, structs, nested members, collections, nullables, plus any relation or combination of them. It also supports translations, custom logic extensions with tests, and DI containers.
Version Downloads Last Updated
5.0.0 17,982 11/18/2025
5.0.0-2.final 1,277 10/9/2025
4.14.0 345,723 5/15/2025
4.13.0 212,391 2/24/2025
4.12.0 191,506 12/4/2024
4.12.0-3.final 1,044 10/29/2024
4.12.0-2.final 1,876 9/17/2024
4.12.0-1.final 176,466 8/14/2024
4.11.0 497,555 8/15/2024
4.11.0-3.final 183 7/31/2024
4.11.0-2.final 78,234 6/19/2024
4.10.0 337,611 6/10/2024
4.10.0-3.final 50,287 4/29/2024
4.10.0-2.final 429 3/19/2024
4.10.0-1.final 250 3/18/2024
4.9.2 301,294 3/2/2024
4.9.0-3.final 130,817 1/22/2024
4.9.0-2.final 846 12/16/2023
4.9.0-1.final 599 12/13/2023
4.8.0 683,604 11/22/2023
4.8.0-3.final 16,405 11/3/2023
4.8.0-2.final 699 9/20/2023
4.8.0-1.final 3,335 9/9/2023
4.7.0 335,332 8/18/2023
4.7.0-2.final 51,621 6/20/2023
4.7.0-1.final 1,672 5/20/2023
4.6.0 292,185 5/16/2023
4.6.0-1.final 21,344 3/3/2023
4.5.0 231,839 2/24/2023
4.5.0-2.final 30,289 1/6/2023
4.4.0 306,662 11/14/2022
4.4.0-4.final 3,068 10/22/2022
4.4.0-2.final 4,731 9/19/2022
4.4.0-1.final 744 8/16/2022
4.3.1 288,538 9/30/2022
4.3.0-3.final 1,724 7/26/2022
4.3.0-2.final 763 6/22/2022
4.3.0-1.final 556 5/10/2022
4.2.0 435,782 5/13/2022
4.2.0-4.final 1,842 4/27/2022
4.2.0-2.final 685 3/25/2022
4.2.0-1.final 478 2/18/2022
4.1.0 190,772 2/16/2022
4.1.0-3.final 773 1/27/2022
4.1.0-1.final 1,173 11/19/2021
4.0.1 322,142 11/9/2021
4.0.0-6.final 3,926 10/20/2021
4.0.0-5.final 525 10/11/2021
4.0.0-4.final 7,037 9/15/2021
4.0.0-3.final 490 8/12/2021
4.0.0-2.final 438 7/20/2021
4.0.0-1.final 485 7/7/2021
3.11.0 209,828 8/11/2021
3.11.0-3.final 348 7/15/2021
3.11.0-1.final 420 6/14/2021
3.10.0 51,054 6/11/2021
3.10.0-3.final 656 5/13/2021
3.10.0-2.final 820 4/20/2021
3.10.0-1.final 544 3/3/2021
3.9.0 142,244 3/2/2021
3.9.0-5.final 616 2/24/2021
3.9.0-4.final 386 2/10/2021
3.9.0-3.final 27,744 1/20/2021
3.9.0-2.final 520 12/10/2020
3.9.0-1.final 445 12/4/2020
3.8.0 1,187,968 11/13/2020
3.8.0-5.final 2,057 10/23/2020
3.8.0-4.final 4,976 10/13/2020
3.8.0-3.final 11,542 9/16/2020