|
1 | | -// Copyright 2004-2017 The Poderosa Project. |
| 1 | +// Copyright 2004-2025 The Poderosa Project. |
2 | 2 | // |
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 4 | // you may not use this file except in compliance with the License. |
@@ -56,16 +56,25 @@ public static class AboutBoxUtil { |
56 | 56 | public const string DEFAULT_ABOUTBOX_ID = "default"; |
57 | 57 |
|
58 | 58 | public static string[] GetVersionInfoContent() { |
59 | | - string[] s = new string[6]; |
60 | | - s[0] = "Terminal Emulator <Poderosa>"; |
61 | | - s[1] = "Copyright(c) " + VersionInfo.COPYRIGHT_YEARS + " " + VersionInfo.PROJECT_NAME + ","; |
62 | | - s[2] = "All Rights Reserved."; |
63 | | - s[3] = ""; |
64 | | - s[4] = " Version : " + VersionInfo.PODEROSA_VERSION; |
65 | | - s[5] = " CLR : " + System.Environment.Version.ToString(); |
| 59 | + string[] s = { |
| 60 | + "Terminal Emulator <Poderosa>", |
| 61 | + "Copyright(c) " + VersionInfo.COPYRIGHT_YEARS + " " + VersionInfo.PROJECT_NAME + ",", |
| 62 | + "All Rights Reserved.", |
| 63 | + "", |
| 64 | + " Version : " + VersionInfo.PODEROSA_VERSION, |
| 65 | + " CLR : " + System.Environment.Version.ToString() + (System.Environment.Is64BitProcess ? " (64 bit)" : " (32 bit)"), |
| 66 | + " Runtime Framework : " + GetFrameworkVersion(), |
| 67 | + }; |
66 | 68 | return s; |
67 | 69 | } |
68 | 70 |
|
| 71 | + private static string GetFrameworkVersion() { |
| 72 | + // >= .NET Framework 4.7.1 |
| 73 | + // return System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription; |
| 74 | + AssemblyFileVersionAttribute attr = (AssemblyFileVersionAttribute)(typeof(object).GetTypeInfo().Assembly.GetCustomAttribute(typeof(AssemblyFileVersionAttribute))); |
| 75 | + return attr.Version; |
| 76 | + } |
| 77 | + |
69 | 78 | //ExtensionPointとPreference。別クラスに分離してWindowManagerのメンバに入れようかな? |
70 | 79 | private static IStringPreferenceItem _aboutBoxID; |
71 | 80 | public static IStringPreferenceItem AboutBoxID { |
|
0 commit comments