GlobalUsingsAnalyzer 1.2.0
See the version list below for details.
dotnet add package GlobalUsingsAnalyzer --version 1.2.0
NuGet\Install-Package GlobalUsingsAnalyzer -Version 1.2.0
<PackageReference Include="GlobalUsingsAnalyzer" Version="1.2.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add GlobalUsingsAnalyzer --version 1.2.0
#r "nuget: GlobalUsingsAnalyzer, 1.2.0"
// Install GlobalUsingsAnalyzer as a Cake Addin #addin nuget:?package=GlobalUsingsAnalyzer&version=1.2.0 // Install GlobalUsingsAnalyzer as a Cake Tool #tool nuget:?package=GlobalUsingsAnalyzer&version=1.2.0
Global usings analyzer
A C# analyzer that will suggest moving usings to a single project file. Defaults to GlobalUsings.cs
To change the name of the file (defaults to GlobalUsings.cs) add the following .editorconfig setting:
dotnet_diagnostic.GlobalUsingsAnalyzer.global_usings_filename = FILENAME.cs
Note: The diagnostics must be placed under the [*.cs] entry to work
Also available as a NuGet package for per-project installs: GlobalUsingsAnalyzer
Release Notes
1.2
- Fixed a bug where the directory structure was wrong in Mac/Linux.
1.1
- Changed name of filename setting to dotnet_diagnostic.GlobalUsingsAnalyzer0001.filename
- Do not report issues when C# version is lower than C# 10 (first version to support Global Usings)
- Added new setting dotnet_diagnostic.GlobalUsingsAnalyzer0002.enabled used to disable the analyzer for a specific project/solution
- Added new setting dotnet_diagnostic.GlobalUsingsAnalyzer0003.diagnostic_severity used to control the severity of the diagnostic. Can be one of the following: error, info, warning, hidden
1.0
Initial release
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release.