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 zcmV-a0;~N80ssI2Bme+XQ$aES1ONa500975toj$yY(#oZ1MzOEa>*Ec1o3WVY26l! z2o5=>^~wDJ@{D$j*y*5&)u7?COwE@Ri07~1FwR`)-yl=Z66}fg(|~2fG{BzbuRh|0 z#oP$=M|8G%zd0$6SMTEuO8~CVo= zhZS;La7^?s!q~9aT*bd+OXa2B3}bl}@EK1IR_)QD=qv=IXNg*(o2DHNSUJARErWlI zYN-;NNXP+<30&ASzAsvj-um#`WMQw-Hogonasazb?ZGRQAqCBrI$P2~_?Cd`ZA@6~ zrMS|145ovb6hGmZLsTC42X3xX9o6HRz!H`YK1X##gN0`V4mw=&gi5}ATdi3;Ub;H{ zM$-4s%BM+1LTqu)H&`5aXyEhGz2j)rjK^Wsmhabolz3@#gDVKehfPqL7(1JyT2Mur zrhi>)PhdLw=Muj6h%kXp42Wp``}wrDnYe8AEA0$;(;U6c96nH_cHcce8MDz-%5{n+ z*%=MizqAm^(u_BVF_l??z1`c|!VBUBOuJ$hk~m)s+3Ra<+3j1~8c|2s7iz|2?9x)C zVs|#nP`h@Qf*W(AI1uIFOA<)uD_v9mr9+AN1QR1gHpFKHxWMe_2sWtc)(c{iI~p?n z*AaGa7Tl~3Hhk*(E>t + /// 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": {