summary refs log tree commit diff
path: root/crypto/src/bcpg
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/bcpg')
-rw-r--r--crypto/src/bcpg/ArmoredOutputStream.cs14
1 files changed, 1 insertions, 13 deletions
diff --git a/crypto/src/bcpg/ArmoredOutputStream.cs b/crypto/src/bcpg/ArmoredOutputStream.cs
index 6b3f48354..44b2b78e7 100644
--- a/crypto/src/bcpg/ArmoredOutputStream.cs
+++ b/crypto/src/bcpg/ArmoredOutputStream.cs
@@ -101,19 +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 DOTNET
-            + typeof(ArmoredOutputStream).GetTypeInfo().Assembly
-              .GetCustomAttribute<AssemblyVersionAttribute>().Version;
-#elif PORTABLE
-            + Assembly.GetExecutingAssembly()
-                .GetCustomAttributes(typeof(AssemblyVersionAttribute), true)
-                .Cast<AssemblyVersionAttribute>()
-                .First()
-                .Version;
-#else
-            + Assembly.GetExecutingAssembly().GetName().Version;
-#endif
+        private static readonly string version = "BCPG C# v" + AssemblyInfo.Version;
 
         private readonly IDictionary headers;