From dffff172063680043e110e4567e910774be35dd6 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 26 Jun 2015 21:02:15 -0400 Subject: Strong-name the assemblies in the newer way --- crypto/BouncyCastle.Android.csproj | 10 ++++++++-- crypto/BouncyCastle.csproj | 10 ++++++++-- crypto/BouncyCastle.iOS.csproj | 10 ++++++++-- crypto/src/AssemblyInfo.cs | 33 --------------------------------- 4 files changed, 24 insertions(+), 39 deletions(-) diff --git a/crypto/BouncyCastle.Android.csproj b/crypto/BouncyCastle.Android.csproj index 1c2f3e6ac..a2a4d5a71 100644 --- a/crypto/BouncyCastle.Android.csproj +++ b/crypto/BouncyCastle.Android.csproj @@ -21,7 +21,7 @@ false bin\Debug\lib\MonoAndroid obj\Debug\lib\MonoAndroid - DEBUG;TRACE;INCLUDE_IDEA;STRONG_NAME;__MOBILE__;__ANDROID__; + DEBUG;TRACE;INCLUDE_IDEA;__MOBILE__;__ANDROID__; prompt 4 None @@ -32,12 +32,18 @@ true bin\Release\lib\MonoAndroid obj\Release\lib\MonoAndroid - TRACE;INCLUDE_IDEA;STRONG_NAME;__MOBILE__;__ANDROID__; + TRACE;INCLUDE_IDEA;__MOBILE__;__ANDROID__; prompt 4 false false + + true + + + ..\BouncyCastle.snk + diff --git a/crypto/BouncyCastle.csproj b/crypto/BouncyCastle.csproj index acb24726e..bebc2a95f 100644 --- a/crypto/BouncyCastle.csproj +++ b/crypto/BouncyCastle.csproj @@ -17,7 +17,7 @@ false bin\Debug\lib\net20 obj\Debug\lib\net20 - DEBUG;TRACE;INCLUDE_IDEA;STRONG_NAME + DEBUG;TRACE;INCLUDE_IDEA; prompt 4 false @@ -26,13 +26,19 @@ true bin\Release\lib\net20 obj\Release\lib\net20 - TRACE;INCLUDE_IDEA;STRONG_NAME + TRACE;INCLUDE_IDEA; doc\BouncyCastle.xml prompt 4 false 1591 + + true + + + ..\BouncyCastle.snk + diff --git a/crypto/BouncyCastle.iOS.csproj b/crypto/BouncyCastle.iOS.csproj index 0a68e8238..18fd1c1d6 100644 --- a/crypto/BouncyCastle.iOS.csproj +++ b/crypto/BouncyCastle.iOS.csproj @@ -19,7 +19,7 @@ false bin\Debug\lib\Xamarin.iOS obj\Debug\lib\Xamarin.iOS - DEBUG;TRACE;INCLUDE_IDEA;STRONG_NAME;__MOBILE__;__IOS__; + DEBUG;TRACE;INCLUDE_IDEA;__MOBILE__;__IOS__; prompt 4 false @@ -28,11 +28,17 @@ true bin\Release\lib\Xamarin.iOS obj\Release\lib\Xamarin.iOS - TRACE;INCLUDE_IDEA;STRONG_NAME;__MOBILE__;__IOS__; + TRACE;INCLUDE_IDEA;__MOBILE__;__IOS__; prompt 4 false + + true + + + ..\BouncyCastle.snk + diff --git a/crypto/src/AssemblyInfo.cs b/crypto/src/AssemblyInfo.cs index 4a813bc5a..caabbc55c 100644 --- a/crypto/src/AssemblyInfo.cs +++ b/crypto/src/AssemblyInfo.cs @@ -31,39 +31,6 @@ using System.Runtime.InteropServices; [assembly: AssemblyVersion("1.8.*")] -// -// In order to sign your assembly you must specify a key to use. Refer to the -// Microsoft .NET Framework documentation for more information on assembly signing. -// -// Use the attributes below to control which key is used for signing. -// -// Notes: -// (*) If no key is specified, the assembly is not signed. -// (*) KeyName refers to a key that has been installed in the Crypto Service -// Provider (CSP) on your machine. KeyFile refers to a file which contains -// a key. -// (*) If the KeyFile and the KeyName values are both specified, the -// following processing occurs: -// (1) If the KeyName can be found in the CSP, that key is used. -// (2) If the KeyName does not exist and the KeyFile does exist, the key -// in the KeyFile is installed into the CSP and used. -// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. -// When specifying the KeyFile, the location of the KeyFile should be -// relative to the project output directory which is -// %Project Directory%\obj\. For example, if your KeyFile is -// located in the project directory, you would specify the AssemblyKeyFile -// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] -// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework -// documentation for more information on this. -// -[assembly: AssemblyDelaySign(false)] -#if STRONG_NAME -[assembly: AssemblyKeyFile(@"../BouncyCastle.snk")] -#else -[assembly: AssemblyKeyFile("")] -#endif -[assembly: AssemblyKeyName("")] - [assembly: CLSCompliant(true)] [assembly: ComVisible(false)] -- cgit 1.4.1