Skip to content

Commit f8390f8

Browse files
authored
chore: enable assembly signing for debug build (#2774)
1 parent 7d4210d commit f8390f8

File tree

5 files changed

+4
-26
lines changed

5 files changed

+4
-26
lines changed

build/common.props

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@
3131
<None Include="$(MSBuildThisFileDirectory)package-icon.png" Pack="True" PackagePath=""/>
3232
</ItemGroup>
3333

34-
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
34+
<PropertyGroup>
3535
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)strongNameKey.snk</AssemblyOriginatorKeyFile>
3636
<SignAssembly>true</SignAssembly>
37+
</PropertyGroup>
38+
39+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
3740
<GenerateDocumentationFile>true</GenerateDocumentationFile>
3841
</PropertyGroup>
3942

src/BenchmarkDotNet.Diagnostics.Windows/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,4 @@
77

88
[assembly: CLSCompliant(true)]
99

10-
#if RELEASE
1110
[assembly: InternalsVisibleTo("BenchmarkDotNet.IntegrationTests,PublicKey=" + BenchmarkDotNetInfo.PublicKey)]
12-
#else
13-
[assembly: InternalsVisibleTo("BenchmarkDotNet.IntegrationTests")]
14-
#endif

src/BenchmarkDotNet.Diagnostics.dotMemory/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,4 @@
44

55
[assembly: CLSCompliant(true)]
66

7-
#if RELEASE
87
[assembly: InternalsVisibleTo("BenchmarkDotNet.Tests,PublicKey=" + BenchmarkDotNetInfo.PublicKey)]
9-
#else
10-
[assembly: InternalsVisibleTo("BenchmarkDotNet.Tests")]
11-
#endif

src/BenchmarkDotNet.Diagnostics.dotTrace/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,4 @@
44

55
[assembly: CLSCompliant(true)]
66

7-
#if RELEASE
87
[assembly: InternalsVisibleTo("BenchmarkDotNet.Tests,PublicKey=" + BenchmarkDotNetInfo.PublicKey)]
9-
#else
10-
[assembly: InternalsVisibleTo("BenchmarkDotNet.Tests")]
11-
#endif
Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
using System;
22
using System.Runtime.CompilerServices;
33
using System.Runtime.InteropServices;
4-
#if RELEASE
54
using BenchmarkDotNet.Properties;
6-
#endif
75

86
[assembly: Guid("cbba82d3-e650-407f-a0f0-767891d4f04c")]
97

108
[assembly: CLSCompliant(true)]
119

12-
#if RELEASE
1310
[assembly: InternalsVisibleTo("BenchmarkDotNet.Tests,PublicKey=" + BenchmarkDotNetInfo.PublicKey)]
1411
[assembly: InternalsVisibleTo("BenchmarkDotNet.IntegrationTests,PublicKey=" + BenchmarkDotNetInfo.PublicKey)]
1512
[assembly: InternalsVisibleTo("BenchmarkDotNet.Diagnostics.Windows,PublicKey=" + BenchmarkDotNetInfo.PublicKey)]
@@ -18,13 +15,3 @@
1815
[assembly: InternalsVisibleTo("BenchmarkDotNet.IntegrationTests.ManualRunning,PublicKey=" + BenchmarkDotNetInfo.PublicKey)]
1916
[assembly: InternalsVisibleTo("BenchmarkDotNet.IntegrationTests.ManualRunning.MultipleFrameworks,PublicKey=" + BenchmarkDotNetInfo.PublicKey)]
2017
[assembly: InternalsVisibleTo("BenchmarkDotNet.TestAdapter,PublicKey=" + BenchmarkDotNetInfo.PublicKey)]
21-
#else
22-
[assembly: InternalsVisibleTo("BenchmarkDotNet.Tests")]
23-
[assembly: InternalsVisibleTo("BenchmarkDotNet.IntegrationTests")]
24-
[assembly: InternalsVisibleTo("BenchmarkDotNet.Diagnostics.Windows")]
25-
[assembly: InternalsVisibleTo("BenchmarkDotNet.Diagnostics.dotTrace")]
26-
[assembly: InternalsVisibleTo("BenchmarkDotNet.Diagnostics.dotMemory")]
27-
[assembly: InternalsVisibleTo("BenchmarkDotNet.IntegrationTests.ManualRunning")]
28-
[assembly: InternalsVisibleTo("BenchmarkDotNet.IntegrationTests.ManualRunning.MultipleFrameworks")]
29-
[assembly: InternalsVisibleTo("BenchmarkDotNet.TestAdapter")]
30-
#endif

0 commit comments

Comments
 (0)