Skip to content

Commit 090a300

Browse files
Copilotsensslen
andcommitted
fix: disable strong naming for source generator project
Source generators run in the compiler/IDE process and should not be strong-named. This fixes the Windows .NET Framework 4.7.2 test failures where the generator DLL was being signed with the same key as the main library, causing strong name verification errors. Co-authored-by: sensslen <3428860+sensslen@users.noreply.github.com>
1 parent 9ac37dc commit 090a300

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/CommandLineUtils.Generators/McMaster.Extensions.CommandLineUtils.Generators.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<IsPackable>false</IsPackable>
1111
<RootNamespace>McMaster.Extensions.CommandLineUtils.Generators</RootNamespace>
1212
<IncludeBuildOutput>false</IncludeBuildOutput>
13+
<!-- Source generators should not be strong-named as they run in the compiler process -->
14+
<SignAssembly>false</SignAssembly>
1315
</PropertyGroup>
1416

1517
<ItemGroup>

0 commit comments

Comments
 (0)