{"id":18279992,"url":"https://github.com/lordmike/mbw.generators","last_synced_at":"2026-04-27T20:32:28.024Z","repository":{"id":142922124,"uuid":"360835714","full_name":"LordMike/MBW.Generators","owner":"LordMike","description":"Repository with .NET source code generators","archived":false,"fork":false,"pushed_at":"2021-10-12T20:44:24.000Z","size":21,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T17:10:36.659Z","etag":null,"topics":["csharp","dotnet","roslyn","source-generator"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LordMike.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-23T09:43:46.000Z","updated_at":"2021-04-23T12:51:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"b12ab476-d25d-4a50-8117-5eadf063d8ee","html_url":"https://github.com/LordMike/MBW.Generators","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordMike%2FMBW.Generators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordMike%2FMBW.Generators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordMike%2FMBW.Generators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LordMike%2FMBW.Generators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LordMike","download_url":"https://codeload.github.com/LordMike/MBW.Generators/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980820,"owners_count":21027803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","dotnet","roslyn","source-generator"],"created_at":"2024-11-05T12:31:58.334Z","updated_at":"2026-04-27T20:32:28.019Z","avatar_url":"https://github.com/LordMike.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MBW.Generators [![Generic Build](https://github.com/LordMike/MBW.Generators/actions/workflows/dotnet.yml/badge.svg)](https://github.com/LordMike/MBW.Generators/actions/workflows/dotnet.yml)\n\nA small collection of Roslyn source generators.\n\nEach generator ships as a single NuGet package containing both the generator\nand its attributes. Install the package to get the annotations and run the\ngenerator, or reference it with `\u003cPrivateAssets\u003eall\u003c/PrivateAssets\u003e` if you\nonly need the attributes.\n\n## Generators\n\n| Generator | Description |\n|-----------|-------------|\n| [NonTryMethods](src/Generators/NonTryMethods.Generator/README.md#readme) [![NuGet](https://img.shields.io/nuget/v/MBW.Generators.NonTryMethods.svg)](https://www.nuget.org/packages/MBW.Generators.NonTryMethods) | Creates non-try wrappers for Try-pattern methods |\n| [OverloadGenerator](src/Generators/OverloadGenerator.Generator/README.md#readme) [![NuGet](https://img.shields.io/nuget/v/MBW.Generators.OverloadGenerator.svg)](https://www.nuget.org/packages/MBW.Generators.OverloadGenerator) | Generates overloads based on declarative attributes |\n| [GeneratorHelpers](src/Generators/GeneratorHelpers.Generator/README.md#readme) [![NuGet](https://img.shields.io/nuget/v/MBW.Generators.GeneratorHelpers.svg)](https://www.nuget.org/packages/MBW.Generators.GeneratorHelpers) | Generates allocation-free Roslyn symbol helpers |\n\nHere’s a reviewed + extended version of your README snippet. I’ve tightened wording, added a bit of background and practical guidance, and included caveats / tips that future you (or consumers) will appreciate:\n\n---\n\n## Logging\n\nAll analyzers in this package share a **common, opt-in logger** for troubleshooting.\nBy default, logging is **disabled** and analyzers are completely silent.\n\n### Enabling logging\n\nYou can turn it on via `.editorconfig` in the root of your solution or project:\n\n```ini\n# Enable/disable (default: false)\nmbw_generators_logging_enabled = true\n\n# Optional: override the pipe name (default: MBW.Generators.Log)\nmbw_generators_logging_pipeName = MBW.Generators.Log\n```\n\nOnce enabled, analyzers will attempt to connect to a named pipe.\nThe default pipe name is `MBW.Generators.Log`.\n\n### Viewing logs\n\nStart the `Tool.LogReader` project before making edits in your IDE.\nAs soon as the analyzers connect, log messages will begin streaming in.\n\nTypical workflow:\n\n1. Launch `Tool.LogReader` (standalone console project).\n2. Open your solution in Visual Studio / Rider / `dotnet build`.\n3. Perform edits or builds — the analyzer will write trace messages into the log reader window.\n\n### Notes \u0026 caveats\n\n* **Best effort only**: if the logger cannot connect to the pipe, it silently disables itself for the rest of the session (no retries).\n* **Zero overhead when off**: when `mbw_generators_logging_enabled = false` (the default), log codepaths are completely skipped.\n* **Local runs only**: this logger is intended for troubleshooting and development. Do not enable it in CI builds unless you explicitly want the output.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flordmike%2Fmbw.generators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flordmike%2Fmbw.generators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flordmike%2Fmbw.generators/lists"}