managing-global-usings - Centralize External Namespace Imports with GlobalUsings.cs
Centralize external namespace imports such as BCL, FCL, and NuGet packages into a GlobalUsings.cs file per project to keep individual code files clean.
Tags
Updated: 2026-09-11Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Create GlobalUsings.cs in project root
- Declare external namespaces with global using
- Remove redundant using statements from files
- Sort global using directives alphabetically
Inputs
- Project root path
- External namespace imports
- C# source files
Outputs
- GlobalUsings.cs file
- Cleaned C# source files
Requirements
- .NET project
