TimeWarp.SourceGenerators
1.0.0-beta.12
Prefix Reserved
dotnet add package TimeWarp.SourceGenerators --version 1.0.0-beta.12
NuGet\Install-Package TimeWarp.SourceGenerators -Version 1.0.0-beta.12
<PackageReference Include="TimeWarp.SourceGenerators" Version="1.0.0-beta.12" />
<PackageVersion Include="TimeWarp.SourceGenerators" Version="1.0.0-beta.12" />
<PackageReference Include="TimeWarp.SourceGenerators" />
paket add TimeWarp.SourceGenerators --version 1.0.0-beta.12
#r "nuget: TimeWarp.SourceGenerators, 1.0.0-beta.12"
#:package TimeWarp.SourceGenerators@1.0.0-beta.12
#addin nuget:?package=TimeWarp.SourceGenerators&version=1.0.0-beta.12&prerelease
#tool nuget:?package=TimeWarp.SourceGenerators&version=1.0.0-beta.12&prerelease
TimeWarp.SourceGenerators
TimeWarp.SourceGenerators ships Roslyn analyzers for C# file names and global usings.
Give a Star! ⭐
If you like or are using this project please give it a star. Thank you!
Features
File Name Rule Analyzer
Enforces kebab-case naming for C# files, including multi-dot partials (e.g. application-state.close-modal.cs) when every segment is kebab-case.
Configuration
Configure exceptions in .editorconfig:
[*.cs]
dotnet_diagnostic.TW0001.excluded_files = Program.cs;Startup.cs;*.Designer.cs
Global Usings Rule Analyzer (TW0007)
Reports file-level using directives that should move to kebab-case global-usings.cs, including usings after a file-scoped namespace X; (the gap in BDSoftware GlobalUsingsAnalyzer 1.4.0). Disabled by default.
[*.cs]
dotnet_diagnostic.TW0007.severity = warning
dotnet_diagnostic.TW0007.filename = global-usings.cs
See configure-global-usings-analyzer.md.
Diagnostic ID prefixes (SSOT)
| Prefix | Package |
|---|---|
| TW | TimeWarp.SourceGenerators (this package) — shipped diagnostics TW0001 and TW0007 |
| TWA | TimeWarp Architecture only — not used by this package |
Do not enable, suppress, or configure this package’s rules with Architecture IDs such as TWA001 / TWA*. File-name kebab-case is TW0001 (dotnet_diagnostic.TW0001.*, #pragma warning disable TW0001). Architecture TWA* keys do not apply here.
Getting started
To quickly get started I recommend reviewing the samples in this repo.
Installation
dotnet add package TimeWarp.SourceGenerators
You can see the latest NuGet packages from the official TimeWarp NuGet page.
Releases
See the Release Notes
Unlicense
Contributing
Time is of the essence. Before developing a Pull Request I recommend opening a discussion.
Please feel free to make suggestions and help out with the documentation. Please refer to Markdown for how to write markdown files.
Contact
Sometimes the github notifications get lost in the shuffle. If you file an issue and don't get a response in a timely manner feel free to ping on our Discord server.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.CodeAnalysis.CSharp (>= 4.11.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on TimeWarp.SourceGenerators:
| Package | Downloads |
|---|---|
|
TimeWarp.OptionsValidation
Integrates FluentValidation with Microsoft.Extensions.Options for configuration validation at startup. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on TimeWarp.SourceGenerators:
| Repository | Stars |
|---|---|
|
TimeWarpEngineering/timewarp-state
A Blazor State management library by TimeWarp.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-beta.12 | 51 | 11/8/2026 |
| 1.0.0-beta.11 | 2,988 | 9/20/2026 |
| 1.0.0-beta.10 | 535 | 7/29/2026 |
| 1.0.0-beta.9 | 89 | 7/29/2026 |
| 1.0.0-beta.8 | 174 | 7/15/2026 |
| 1.0.0-beta.7 | 785 | 10/17/2025 |
| 1.0.0-beta.6 | 146 | 10/17/2025 |
| 1.0.0-beta.5 | 166 | 10/17/2025 |
| 1.0.0-beta.4 | 373 | 8/21/2025 |
| 1.0.0-beta.3 | 121 | 8/2/2025 |
| 1.0.0-beta.2 | 94 | 8/2/2025 |
| 1.0.0-beta.1 | 107 | 8/2/2025 |
| 1.0.0-alpha.8 | 174 | 11/23/2024 |
| 1.0.0-alpha.7 | 117 | 11/23/2024 |
| 1.0.0-alpha.5 | 275 | 11/20/2022 |
| 1.0.0-alpha.4 | 148 | 11/20/2022 |
| 1.0.0-alpha.3 | 259 | 11/8/2022 |
| 1.0.0-alpha.2 | 139 | 11/8/2022 |
| 1.0.0-alpha.1 | 149 | 11/8/2022 |
For detailed release notes and changelog, please visit: https://github.com/TimeWarpEngineering/timewarp-source-generators/releases