From c1e603f741728fd570e30c46eb20ef8dfb23238a Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 27 Oct 2015 12:30:28 +0700 Subject: Pull a few PORTABLE changes from BouncyCastle-PCL (with fixes) --- crypto/src/bcpg/ArmoredOutputStream.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'crypto/src/bcpg') diff --git a/crypto/src/bcpg/ArmoredOutputStream.cs b/crypto/src/bcpg/ArmoredOutputStream.cs index fb1f6eb29..253c5d1fe 100644 --- a/crypto/src/bcpg/ArmoredOutputStream.cs +++ b/crypto/src/bcpg/ArmoredOutputStream.cs @@ -101,16 +101,7 @@ namespace Org.BouncyCastle.Bcpg private static readonly string footerStart = "-----END PGP "; private static readonly string footerTail = "-----"; - private static readonly string version = "BCPG C# v" -#if PORTABLE - + Assembly.GetExecutingAssembly() - .GetCustomAttributes(typeof(AssemblyVersionAttribute), true) - .Cast() - .First() - .Version; -#else - + Assembly.GetExecutingAssembly().GetName().Version; -#endif + private static readonly string version = "BCPG C# v" + AssemblyInfo.Version; private readonly IDictionary headers; -- cgit 1.4.1