リビジョン | 377bf79493fc795900393e91253ce42b04e34d37 (tree) |
---|---|
日時 | 2017-09-02 13:41:53 |
作者 | yyagi <yyagi.dtxmania@gmai...> |
コミッター | yyagi |
@@ -13,6 +13,27 @@ namespace DTXMania | ||
13 | 13 | { |
14 | 14 | internal class Program |
15 | 15 | { |
16 | + #region [ バージョン情報とアセンブリ情報の整合性チェック ] | |
17 | + private static bool tVERSIONチェック() | |
18 | + { | |
19 | + // 本体バージョンを取得 | |
20 | + CDTXVersion cdtxver = new CDTXVersion(CDTXMania.VERSION); | |
21 | + int ver_sys_major = cdtxver.n整数部; | |
22 | + | |
23 | + //自分自身のAssemblyを取得 | |
24 | + System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly(); | |
25 | + int ver_asm_major = asm.GetName().Version.Major; | |
26 | + | |
27 | + if (ver_sys_major != ver_asm_major) | |
28 | + { | |
29 | + MessageBox.Show("リリースバージョン(" + ver_sys_major.ToString() + ")とアセンブリバージョン(" + ver_asm_major.ToString() + ")が異なります。", | |
30 | + "DTXMania build error", MessageBoxButtons.OK, MessageBoxIcon.Warning); | |
31 | + return true; | |
32 | + } | |
33 | + return false; | |
34 | + } | |
35 | + #endregion | |
36 | + | |
16 | 37 | #region [ 二重起動チェック、DLL存在チェック ] |
17 | 38 | //----------------------------- |
18 | 39 | private static Mutex mutex二重起動防止用; |
@@ -135,6 +156,9 @@ namespace DTXMania | ||
135 | 156 | )) |
136 | 157 | bDLLnotfound = true; |
137 | 158 | #endregion |
159 | + #region [バージョン情報とアセンブリ情報の整合性チェック] | |
160 | + tVERSIONチェック(); | |
161 | + #endregion | |
138 | 162 | if (!bDLLnotfound) |
139 | 163 | { |
140 | 164 | #if DEBUG && TEST_ENGLISH |
@@ -64,7 +64,8 @@ | ||
64 | 64 | <Prefer32Bit>false</Prefer32Bit> |
65 | 65 | </PropertyGroup> |
66 | 66 | <ItemGroup> |
67 | - <Reference Include="Bass.Net"> | |
67 | + <Reference Include="Bass.Net, Version=2.4.12.7, Culture=neutral, PublicKeyToken=b7566c273e6ef480, processorArchitecture=MSIL"> | |
68 | + <SpecificVersion>False</SpecificVersion> | |
68 | 69 | <HintPath>..\RuntimeResources\dll\Bass.Net.dll</HintPath> |
69 | 70 | </Reference> |
70 | 71 | <Reference Include="DirectShowLib, Version=2.1.0.1599, Culture=neutral, processorArchitecture=MSIL"> |