Skip to content

Commit 5fa092e

Browse files
committed
Enable strong name signing
Per the documentation on strong name signing, the private key is not actually required to be private. https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/strong-name-signing.md
1 parent 357bd19 commit 5fa092e

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/Arborist.snk

596 Bytes
Binary file not shown.

src/Arborist/src/Arborist.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<InternalsVisibleTo Include="$(AssemblyName).Tests"/>
14+
<InternalsVisibleTo Include="$(AssemblyName).Tests, PublicKey=$(StrongNamePublicKey)"/>
1515
</ItemGroup>
1616

1717
<ItemGroup>

src/Directory.Build.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
<ImplicitUsings>enable</ImplicitUsings>
1919
</PropertyGroup>
2020

21+
<PropertyGroup>
22+
<SignAssembly>true</SignAssembly>
23+
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)/Arborist.snk</AssemblyOriginatorKeyFile>
24+
<StrongNamePublicKey>002400000480000094000000060200000024000052534131000400000100010089648e26fb49b8e7c009e396f1a6af1bbf4af3e06ed730dcfc1092f43c10b54a3b618af3a4f6f2c9ea538c8223ca850ca202f2b7e1470ea71ee6ce420675d5048de3aa3da6bd35c2d1f9297251dbc364e05d10cd33c4f5286c0aa60277cd6eaafd3f5ef75616e84186b3027e2c429d37911e4b361fd941af98055dd6a8c432b2</StrongNamePublicKey>
25+
</PropertyGroup>
26+
2127
<ItemGroup>
2228
<!-- Clear default SDK-provided usings -->
2329
<Using Remove="*" />

0 commit comments

Comments
 (0)