From 4b51a8d1acebfbff2e98292ac64820ebca52ecd0 Mon Sep 17 00:00:00 2001 From: Andrew Lock Date: Mon, 9 Mar 2026 20:15:35 +0000 Subject: [PATCH] Bump to 1.0.0-beta21 --- CHANGELOG.md | 15 +++++++++++++++ docs/NetEscapades.EnumGenerators.Generators.md | 16 ++++++++-------- ...Escapades.EnumGenerators.Generators.source.md | 2 +- docs/NetEscapades.EnumGenerators.Interceptors.md | 2 +- ...capades.EnumGenerators.Interceptors.source.md | 2 +- docs/NetEscapades.EnumGenerators.md | 16 ++++++++-------- docs/NetEscapades.EnumGenerators.source.md | 2 +- docs/README.md | 16 ++++++++-------- docs/README.source.md | 2 +- docs/fragments/package-referencing.include.md | 12 ++++++------ docs/fragments/preserving-usages.include.md | 2 +- releasenotes.props | 13 +++++-------- .../Constants.cs | 2 +- version.props | 2 +- 14 files changed, 58 insertions(+), 46 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68784d5..474229d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,21 @@ Changelog --- +## [v1.0.0-beta21](https://github.com/andrewlock/NetEscapades.EnumGenerators/compare/v1.0.0-beta20..v1.0.0-beta21) (2026-03-09) + +### Breaking Changes + +* When using the _NetEscapades.EnumGenerators_ meta package, set `EnumGenerator_PreserveAttributes=true` by default, so that usage analyzers can light up in downstream projects (#241) + +### Features + +* Add "Force Internal" to allow forcing extension methods to be `internal` even for `public` enums (#230) Thanks [@xC0dex](https://github.com/xC0dex)! +* Extend usage analyzers to nullable enum variables (#244) + +### Fixes + +* Scan all assemblies for "external" attributes for usage analyzers (#238) + ## [v1.0.0-beta20](https://github.com/andrewlock/NetEscapades.EnumGenerators/compare/v1.0.0-beta19..v1.0.0-beta20) (2026-01-05) ### Breaking Changes diff --git a/docs/NetEscapades.EnumGenerators.Generators.md b/docs/NetEscapades.EnumGenerators.Generators.md index eacfc75..8cb7396 100644 --- a/docs/NetEscapades.EnumGenerators.Generators.md +++ b/docs/NetEscapades.EnumGenerators.Generators.md @@ -90,7 +90,7 @@ This adds a `` to your project. You can additionally mark the - @@ -451,10 +451,10 @@ In some cases you may not want these dependencies to flow to other projects. Thi - + - + ``` @@ -514,7 +514,7 @@ In general, for simplicity, we recommend referencing [NetEscapades.EnumGenerator net8.0 - + ``` @@ -527,7 +527,7 @@ In contrast, if you are producing a reusable library and don't want any runtime net8.0 - + ``` @@ -541,8 +541,8 @@ The final option is to reference [NetEscapades.EnumGenerators.Generators](https: net8.0 - - + + ``` @@ -655,7 +655,7 @@ The `[EnumExtensions]` attribute is decorated with the `[Conditional]` attribute - + ``` diff --git a/docs/NetEscapades.EnumGenerators.Generators.source.md b/docs/NetEscapades.EnumGenerators.Generators.source.md index 071d4d0..eb96a76 100644 --- a/docs/NetEscapades.EnumGenerators.Generators.source.md +++ b/docs/NetEscapades.EnumGenerators.Generators.source.md @@ -36,7 +36,7 @@ This adds a `` to your project. You can additionally mark the - diff --git a/docs/NetEscapades.EnumGenerators.Interceptors.md b/docs/NetEscapades.EnumGenerators.Interceptors.md index 4ad30cb..503cc07 100644 --- a/docs/NetEscapades.EnumGenerators.Interceptors.md +++ b/docs/NetEscapades.EnumGenerators.Interceptors.md @@ -69,7 +69,7 @@ This adds a `` to your project. You can additionally mark the - + diff --git a/docs/NetEscapades.EnumGenerators.Interceptors.source.md b/docs/NetEscapades.EnumGenerators.Interceptors.source.md index 9d09f1e..e1e7c5d 100644 --- a/docs/NetEscapades.EnumGenerators.Interceptors.source.md +++ b/docs/NetEscapades.EnumGenerators.Interceptors.source.md @@ -57,7 +57,7 @@ This adds a `` to your project. You can additionally mark the - + diff --git a/docs/NetEscapades.EnumGenerators.md b/docs/NetEscapades.EnumGenerators.md index 7f18917..4eb0666 100644 --- a/docs/NetEscapades.EnumGenerators.md +++ b/docs/NetEscapades.EnumGenerators.md @@ -90,7 +90,7 @@ This adds a `` to your project: - + @@ -453,10 +453,10 @@ In some cases you may not want these dependencies to flow to other projects. Thi - + - + ``` @@ -516,7 +516,7 @@ In general, for simplicity, we recommend referencing [NetEscapades.EnumGenerator net8.0 - + ``` @@ -529,7 +529,7 @@ In contrast, if you are producing a reusable library and don't want any runtime net8.0 - + ``` @@ -543,8 +543,8 @@ The final option is to reference [NetEscapades.EnumGenerators.Generators](https: net8.0 - - + + ``` @@ -657,7 +657,7 @@ The `[EnumExtensions]` attribute is decorated with the `[Conditional]` attribute - + ``` diff --git a/docs/NetEscapades.EnumGenerators.source.md b/docs/NetEscapades.EnumGenerators.source.md index c1d0324..b8e4763 100644 --- a/docs/NetEscapades.EnumGenerators.source.md +++ b/docs/NetEscapades.EnumGenerators.source.md @@ -36,7 +36,7 @@ This adds a `` to your project: - + diff --git a/docs/README.md b/docs/README.md index 7e238e5..f7c01f0 100644 --- a/docs/README.md +++ b/docs/README.md @@ -90,7 +90,7 @@ This adds a `` to your project: - + @@ -453,10 +453,10 @@ In some cases you may not want these dependencies to flow to other projects. Thi - + - + ``` @@ -516,7 +516,7 @@ In general, for simplicity, we recommend referencing [NetEscapades.EnumGenerator net8.0 - + ``` @@ -529,7 +529,7 @@ In contrast, if you are producing a reusable library and don't want any runtime net8.0 - + ``` @@ -543,8 +543,8 @@ The final option is to reference [NetEscapades.EnumGenerators.Generators](https: net8.0 - - + + ``` @@ -657,7 +657,7 @@ The `[EnumExtensions]` attribute is decorated with the `[Conditional]` attribute - + ``` diff --git a/docs/README.source.md b/docs/README.source.md index c1d0324..b8e4763 100644 --- a/docs/README.source.md +++ b/docs/README.source.md @@ -36,7 +36,7 @@ This adds a `` to your project: - + diff --git a/docs/fragments/package-referencing.include.md b/docs/fragments/package-referencing.include.md index cbd0df7..87e7f0c 100644 --- a/docs/fragments/package-referencing.include.md +++ b/docs/fragments/package-referencing.include.md @@ -33,10 +33,10 @@ In some cases you may not want these dependencies to flow to other projects. Thi - + - + ``` @@ -96,7 +96,7 @@ In general, for simplicity, we recommend referencing [NetEscapades.EnumGenerator net8.0 - + ``` @@ -109,7 +109,7 @@ In contrast, if you are producing a reusable library and don't want any runtime net8.0 - + ``` @@ -123,8 +123,8 @@ The final option is to reference [NetEscapades.EnumGenerators.Generators](https: net8.0 - - + + ``` diff --git a/docs/fragments/preserving-usages.include.md b/docs/fragments/preserving-usages.include.md index d81fd05..083b041 100644 --- a/docs/fragments/preserving-usages.include.md +++ b/docs/fragments/preserving-usages.include.md @@ -14,6 +14,6 @@ The `[EnumExtensions]` attribute is decorated with the `[Conditional]` attribute - + ``` diff --git a/releasenotes.props b/releasenotes.props index aa7b189..e0c50c3 100644 --- a/releasenotes.props +++ b/releasenotes.props @@ -2,23 +2,20 @@ ` (#230) +* Add "Force Internal" to allow forcing extension methods to be `internal` even for `public` enums (#230) Thanks [@xC0dex](https://github.com/xC0dex)! +* Extend usage analyzers to nullable enum variables (#244) ### Fixes -* Fix generating invalid XML in System.Memory warnings (#228) +* Scan all assemblies for "external" attributes for usage analyzers (#238) ]]> diff --git a/src/NetEscapades.EnumGenerators.Generators/Constants.cs b/src/NetEscapades.EnumGenerators.Generators/Constants.cs index 04f0194..3f4d9ab 100644 --- a/src/NetEscapades.EnumGenerators.Generators/Constants.cs +++ b/src/NetEscapades.EnumGenerators.Generators/Constants.cs @@ -2,7 +2,7 @@ namespace NetEscapades.EnumGenerators; public static class Constants { - public const string Version = "1.0.0-beta20"; + public const string Version = "1.0.0-beta21"; public const string MetadataSourcePropertyName = "EnumGenerator_EnumMetadataSource"; public const string ForceExtensionMembers = "EnumGenerator_ForceExtensionMembers"; public const string ForceInternalPropertyName = "EnumGenerator_ForceInternal"; diff --git a/version.props b/version.props index 8143b3a..0bf7cd2 100644 --- a/version.props +++ b/version.props @@ -1,7 +1,7 @@ 1.0.0 - beta20 + beta21 $(VersionPrefix) $(VersionPrefix)-$(VersionSuffix)