From 73f4c552d25d44406a1462cfbbba25c6df514681 Mon Sep 17 00:00:00 2001 From: Andrew Lock Date: Thu, 5 Mar 2026 20:31:45 +0000 Subject: [PATCH 1/2] Add nuke temp to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 72e6b8d..d984519 100644 --- a/.gitignore +++ b/.gitignore @@ -252,6 +252,7 @@ BenchmarkDotNet.Artifacts # Nuke.build files .nuke/build.schema.json +.nuke/temp # AI agents .claude/ \ No newline at end of file From 61b3a7996cddc30ce93623ac2c18dc6b3200c978 Mon Sep 17 00:00:00 2001 From: Andrew Lock Date: Thu, 5 Mar 2026 21:15:32 +0000 Subject: [PATCH 2/2] Enable attribute preservation by default, to enable the usage analyzers --- README.md | 2 +- .../NetEscapades.EnumGenerators.csproj | 1 + .../NetEscapades.EnumGenerators.targets | 21 +++++++++++++++++++ ...ndard.Interceptors.IntegrationTests.csproj | 2 ++ 4 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 src/NetEscapades.EnumGenerators/NetEscapades.EnumGenerators.targets diff --git a/README.md b/README.md index a7f7f64..aae986c 100644 --- a/README.md +++ b/README.md @@ -624,7 +624,7 @@ If you wish to preserve these attributes in the build output, you can define the - + diff --git a/src/NetEscapades.EnumGenerators/NetEscapades.EnumGenerators.csproj b/src/NetEscapades.EnumGenerators/NetEscapades.EnumGenerators.csproj index d3b51e8..eb18cac 100644 --- a/src/NetEscapades.EnumGenerators/NetEscapades.EnumGenerators.csproj +++ b/src/NetEscapades.EnumGenerators/NetEscapades.EnumGenerators.csproj @@ -21,5 +21,6 @@ + \ No newline at end of file diff --git a/src/NetEscapades.EnumGenerators/NetEscapades.EnumGenerators.targets b/src/NetEscapades.EnumGenerators/NetEscapades.EnumGenerators.targets new file mode 100644 index 0000000..171b0dc --- /dev/null +++ b/src/NetEscapades.EnumGenerators/NetEscapades.EnumGenerators.targets @@ -0,0 +1,21 @@ + + + + + $(DefineConstants);NETESCAPADES_ENUMGENERATORS_USAGES + + + diff --git a/tests/NetEscapades.EnumGenerators.NetStandard.Interceptors.IntegrationTests/NetEscapades.EnumGenerators.NetStandard.Interceptors.IntegrationTests.csproj b/tests/NetEscapades.EnumGenerators.NetStandard.Interceptors.IntegrationTests/NetEscapades.EnumGenerators.NetStandard.Interceptors.IntegrationTests.csproj index a0cb620..5986b68 100644 --- a/tests/NetEscapades.EnumGenerators.NetStandard.Interceptors.IntegrationTests/NetEscapades.EnumGenerators.NetStandard.Interceptors.IntegrationTests.csproj +++ b/tests/NetEscapades.EnumGenerators.NetStandard.Interceptors.IntegrationTests/NetEscapades.EnumGenerators.NetStandard.Interceptors.IntegrationTests.csproj @@ -30,6 +30,8 @@ OutputItemType="Analyzer" ReferenceOutputAssembly="true" /> + +