Skip to content

Commit

Permalink
Remove InternalsVisibleTo
Browse files Browse the repository at this point in the history
* solves conflict of the ModuleInitializerAttribute cause by PolySharp
  • Loading branch information
FreeApophis committed Dec 5, 2023
1 parent 3106ede commit b1e3572
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 12 additions & 0 deletions Funcky.SourceGenerator.Test/ModuleInitializer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System.Runtime.CompilerServices;

namespace Funcky.SourceGenerator.Test;

public static class ModuleInitializer
{
[ModuleInitializer]
public static void Init()
{
VerifySourceGenerators.Enable();
}
}
4 changes: 1 addition & 3 deletions Funcky.SourceGenerator/Funcky.SourceGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
<LangVersion>preview</LangVersion>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<InternalsVisibleTo Include="$(AssemblyName).Test" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" />
Expand Down

0 comments on commit b1e3572

Please sign in to comment.