From b41823fc10af701c2865a48fb73659837aca0d66 Mon Sep 17 00:00:00 2001 From: Jon Skeet Date: Tue, 15 Nov 2016 18:41:46 +0000 Subject: [PATCH] Strong-name both the main and test projects It's not clear whether SharpCompress.Test.Portable (as referenced in AssemblyInfo.cs) still exists, but build.ps1 certainly works. --- SharpCompress.snk | Bin 0 -> 596 bytes src/SharpCompress/AssemblyInfo.cs | 22 +++++++++++++++++++--- src/SharpCompress/project.json | 3 ++- test/SharpCompress.Test/project.json | 4 ++++ 4 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 SharpCompress.snk diff --git a/SharpCompress.snk b/SharpCompress.snk new file mode 100644 index 0000000000000000000000000000000000000000..e1aa6a29dfe4667f2eea2fbbb0c3fde1b5f29058 GIT binary patch literal 596 zcmZQ)VqjoUVPFUfb~IvOVPIfnU}T6~^Gp0vj!Ts<^T)hZMJFX{SU%>ZX5JO+=HRnj z_VwgnhEF|ZJvUx1=)Ah%;bxz+(?vR-uYX{0F6PC3h2Zl-Z#utSZb&_1a$w%G^>&Y1 zj^5$;;$E_?a=)c!U-ADZ}Hf4n$hjX)Z9O-6LOAuaUJeSSbn{mH}&$) z-UH6#p#_KE=cz3X#X!PUh$oTvF=a%g=cjSE4e#=vFS!VB9 z8M}ZbW%q6EB{yFTK2_SKc2kn~+Wsv9ColDwcNk8MY}|YI_N_zQk63+nCy7n6i08Ta zIy?8~+vwX;f$lfNvyP>_xfHY{sod;z!0xi?P141SEd-uE@D}oTt{ofvZ>e+VPZnWi zSFm^Xivgh~=UC{1Xmtk5LjcFYA>n zzZ)BQbBmv)!|N3(1;MUthh}s7g|^Byn7Gc_Tj4Ojx1}qY=?_Xi} JJO6`24FGhQA({XH literal 0 HcmV?d00001 diff --git a/src/SharpCompress/AssemblyInfo.cs b/src/SharpCompress/AssemblyInfo.cs index 4c64dfac..8c6513cd 100644 --- a/src/SharpCompress/AssemblyInfo.cs +++ b/src/SharpCompress/AssemblyInfo.cs @@ -4,6 +4,22 @@ using System.Runtime.CompilerServices; [assembly: AssemblyTitle("SharpCompress")] [assembly: AssemblyProduct("SharpCompress")] -[assembly: InternalsVisibleTo("SharpCompress.Test")] -[assembly: InternalsVisibleTo("SharpCompress.Test.Portable")] -[assembly: CLSCompliant(true)] \ No newline at end of file +[assembly: InternalsVisibleTo("SharpCompress.Test" + SharpCompress.AssemblyInfo.PublicKeySuffix)] +[assembly: InternalsVisibleTo("SharpCompress.Test.Portable" + SharpCompress.AssemblyInfo.PublicKeySuffix)] +[assembly: CLSCompliant(true)] + +namespace SharpCompress +{ + /// + /// Just a static class to house the public key, to avoid repetition. + /// + internal static class AssemblyInfo + { + internal const string PublicKeySuffix = + ",PublicKey=002400000480000094000000060200000024000052534131000400000100010059acfa17d26c44" + + "7a4d03f16eaa72c9187c04f16e6569dd168b080e39a6f5c9fd00f28c768cd8e9a089d5a0e1b34c" + + "cd971488e7afe030ce5ce8df2053cf12ec89f6d38065c434c09ee6af3ee284c5dc08f44774b679" + + "bf39298e57efe30d4b00aecf9e4f6f8448b2cb0146d8956dfcab606cc64a0ac38c60a7d78b0d65" + + "d3b98dc0"; + } +} diff --git a/src/SharpCompress/project.json b/src/SharpCompress/project.json index 9412b911..9c086a48 100644 --- a/src/SharpCompress/project.json +++ b/src/SharpCompress/project.json @@ -13,7 +13,8 @@ }, "buildOptions": { "warningsAsErrors": true, - "allowUnsafe": true + "allowUnsafe": true, + "keyFile": "../../SharpCompress.snk" }, "frameworks": { "net35": { diff --git a/test/SharpCompress.Test/project.json b/test/SharpCompress.Test/project.json index 220ee5c2..0315281d 100644 --- a/test/SharpCompress.Test/project.json +++ b/test/SharpCompress.Test/project.json @@ -1,4 +1,8 @@ { + "buildOptions": { + "keyFile": "../../SharpCompress.snk" + }, + "testRunner": "xunit", "frameworks": {