From b1e357246f55b7a79c02fed3957df5dcc99a8d9b Mon Sep 17 00:00:00 2001 From: Thomas Bruderer Date: Tue, 5 Dec 2023 09:08:45 +0100 Subject: [PATCH] Remove InternalsVisibleTo * solves conflict of the ModuleInitializerAttribute cause by PolySharp --- Funcky.SourceGenerator.Test/ModuleInitializer.cs | 12 ++++++++++++ Funcky.SourceGenerator/Funcky.SourceGenerator.csproj | 4 +--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 Funcky.SourceGenerator.Test/ModuleInitializer.cs diff --git a/Funcky.SourceGenerator.Test/ModuleInitializer.cs b/Funcky.SourceGenerator.Test/ModuleInitializer.cs new file mode 100644 index 00000000..90295c49 --- /dev/null +++ b/Funcky.SourceGenerator.Test/ModuleInitializer.cs @@ -0,0 +1,12 @@ +using System.Runtime.CompilerServices; + +namespace Funcky.SourceGenerator.Test; + +public static class ModuleInitializer +{ + [ModuleInitializer] + public static void Init() + { + VerifySourceGenerators.Enable(); + } +} diff --git a/Funcky.SourceGenerator/Funcky.SourceGenerator.csproj b/Funcky.SourceGenerator/Funcky.SourceGenerator.csproj index d3a1fb4a..8df35b48 100644 --- a/Funcky.SourceGenerator/Funcky.SourceGenerator.csproj +++ b/Funcky.SourceGenerator/Funcky.SourceGenerator.csproj @@ -8,9 +8,7 @@ preview false - - - +