From da4df453de92434ee38b34f22138e1c0436bcc9e Mon Sep 17 00:00:00 2001 From: Evan Dixon Date: Thu, 2 Feb 2017 23:41:58 -0600 Subject: [PATCH 1/2] Added "Any CPU" build configurations Prefer 32-bit is enabled, so there will be no functional difference from before, except that any of the assemblies can be referenced by a 64-bit process. --- PKHeX.WinForms/PKHeX.WinForms.csproj | 50 +++++++++++++++++++++++--- PKHeX.sln | 28 +++++++++++++++ PKHeX/PKHeX.Core.csproj | 52 +++++++++++++++++++++++++--- Tests/PKHeX.Tests/PKHeX.Tests.csproj | 18 ++++++++++ 4 files changed, 140 insertions(+), 8 deletions(-) diff --git a/PKHeX.WinForms/PKHeX.WinForms.csproj b/PKHeX.WinForms/PKHeX.WinForms.csproj index c5546baed..b199118ad 100644 --- a/PKHeX.WinForms/PKHeX.WinForms.csproj +++ b/PKHeX.WinForms/PKHeX.WinForms.csproj @@ -34,7 +34,7 @@ true - bin\Debug\ + bin\x86\Debug\ DEBUG;CLICKONCE;WINDOWS full x86 @@ -44,7 +44,7 @@ false - bin\Release\ + bin\x86\Release\ CLICKONCE;WINDOWS true pdbonly @@ -55,7 +55,7 @@ true - bin\Mono-Debug\ + bin\x86\Mono-Debug\ DEBUG;MONO full x86 @@ -65,7 +65,7 @@ false - bin\Mono-Release\ + bin\x86\Mono-Release\ MONO true pdbonly @@ -74,6 +74,48 @@ MinimumRecommendedRules.ruleset false + + true + bin\Debug\ + DEBUG;CLICKONCE;WINDOWS + full + AnyCPU + false + prompt + MinimumRecommendedRules.ruleset + true + + + bin\Release\ + CLICKONCE;WINDOWS + true + pdbonly + AnyCPU + prompt + MinimumRecommendedRules.ruleset + true + + + true + bin\Mono-Debug\ + DEBUG;MONO + full + AnyCPU + false + prompt + MinimumRecommendedRules.ruleset + true + + + bin\Mono-Release\ + MONO + true + pdbonly + AnyCPU + prompt + MinimumRecommendedRules.ruleset + true + diff --git a/PKHeX.sln b/PKHeX.sln index 3af2c79c2..d9a99bde9 100644 --- a/PKHeX.sln +++ b/PKHeX.sln @@ -19,32 +19,60 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PKHeX.WinForms", "PKHeX.Win EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU Debug|x86 = Debug|x86 + Mono-Debug|Any CPU = Mono-Debug|Any CPU Mono-Debug|x86 = Mono-Debug|x86 + Mono-Release|Any CPU = Mono-Release|Any CPU Mono-Release|x86 = Mono-Release|x86 + Release|Any CPU = Release|Any CPU Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B4EFF030-C75A-49F9-A4BC-738D1B61C4AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B4EFF030-C75A-49F9-A4BC-738D1B61C4AF}.Debug|Any CPU.Build.0 = Debug|Any CPU {B4EFF030-C75A-49F9-A4BC-738D1B61C4AF}.Debug|x86.ActiveCfg = Debug|x86 {B4EFF030-C75A-49F9-A4BC-738D1B61C4AF}.Debug|x86.Build.0 = Debug|x86 + {B4EFF030-C75A-49F9-A4BC-738D1B61C4AF}.Mono-Debug|Any CPU.ActiveCfg = Mono-Debug|Any CPU + {B4EFF030-C75A-49F9-A4BC-738D1B61C4AF}.Mono-Debug|Any CPU.Build.0 = Mono-Debug|Any CPU {B4EFF030-C75A-49F9-A4BC-738D1B61C4AF}.Mono-Debug|x86.ActiveCfg = Mono-Debug|x86 {B4EFF030-C75A-49F9-A4BC-738D1B61C4AF}.Mono-Debug|x86.Build.0 = Mono-Debug|x86 + {B4EFF030-C75A-49F9-A4BC-738D1B61C4AF}.Mono-Release|Any CPU.ActiveCfg = Mono-Release|Any CPU + {B4EFF030-C75A-49F9-A4BC-738D1B61C4AF}.Mono-Release|Any CPU.Build.0 = Mono-Release|Any CPU {B4EFF030-C75A-49F9-A4BC-738D1B61C4AF}.Mono-Release|x86.ActiveCfg = Mono-Release|x86 {B4EFF030-C75A-49F9-A4BC-738D1B61C4AF}.Mono-Release|x86.Build.0 = Mono-Release|x86 + {B4EFF030-C75A-49F9-A4BC-738D1B61C4AF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B4EFF030-C75A-49F9-A4BC-738D1B61C4AF}.Release|Any CPU.Build.0 = Release|Any CPU {B4EFF030-C75A-49F9-A4BC-738D1B61C4AF}.Release|x86.ActiveCfg = Release|x86 {B4EFF030-C75A-49F9-A4BC-738D1B61C4AF}.Release|x86.Build.0 = Release|x86 + {8E2499BC-C11A-4809-8737-66D35A625425}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8E2499BC-C11A-4809-8737-66D35A625425}.Debug|Any CPU.Build.0 = Debug|Any CPU {8E2499BC-C11A-4809-8737-66D35A625425}.Debug|x86.ActiveCfg = Debug|x86 {8E2499BC-C11A-4809-8737-66D35A625425}.Debug|x86.Build.0 = Debug|x86 + {8E2499BC-C11A-4809-8737-66D35A625425}.Mono-Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8E2499BC-C11A-4809-8737-66D35A625425}.Mono-Debug|Any CPU.Build.0 = Debug|Any CPU {8E2499BC-C11A-4809-8737-66D35A625425}.Mono-Debug|x86.ActiveCfg = Debug|x86 + {8E2499BC-C11A-4809-8737-66D35A625425}.Mono-Release|Any CPU.ActiveCfg = Release|Any CPU + {8E2499BC-C11A-4809-8737-66D35A625425}.Mono-Release|Any CPU.Build.0 = Release|Any CPU {8E2499BC-C11A-4809-8737-66D35A625425}.Mono-Release|x86.ActiveCfg = Release|x86 + {8E2499BC-C11A-4809-8737-66D35A625425}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8E2499BC-C11A-4809-8737-66D35A625425}.Release|Any CPU.Build.0 = Release|Any CPU {8E2499BC-C11A-4809-8737-66D35A625425}.Release|x86.ActiveCfg = Release|x86 {8E2499BC-C11A-4809-8737-66D35A625425}.Release|x86.Build.0 = Release|x86 + {D1B91861-A448-4762-A313-C7BC179F4415}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D1B91861-A448-4762-A313-C7BC179F4415}.Debug|Any CPU.Build.0 = Debug|Any CPU {D1B91861-A448-4762-A313-C7BC179F4415}.Debug|x86.ActiveCfg = Debug|x86 {D1B91861-A448-4762-A313-C7BC179F4415}.Debug|x86.Build.0 = Debug|x86 + {D1B91861-A448-4762-A313-C7BC179F4415}.Mono-Debug|Any CPU.ActiveCfg = Mono-Debug|Any CPU + {D1B91861-A448-4762-A313-C7BC179F4415}.Mono-Debug|Any CPU.Build.0 = Mono-Debug|Any CPU {D1B91861-A448-4762-A313-C7BC179F4415}.Mono-Debug|x86.ActiveCfg = Mono-Debug|x86 {D1B91861-A448-4762-A313-C7BC179F4415}.Mono-Debug|x86.Build.0 = Mono-Debug|x86 + {D1B91861-A448-4762-A313-C7BC179F4415}.Mono-Release|Any CPU.ActiveCfg = Mono-Release|Any CPU + {D1B91861-A448-4762-A313-C7BC179F4415}.Mono-Release|Any CPU.Build.0 = Mono-Release|Any CPU {D1B91861-A448-4762-A313-C7BC179F4415}.Mono-Release|x86.ActiveCfg = Mono-Release|x86 {D1B91861-A448-4762-A313-C7BC179F4415}.Mono-Release|x86.Build.0 = Mono-Release|x86 + {D1B91861-A448-4762-A313-C7BC179F4415}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D1B91861-A448-4762-A313-C7BC179F4415}.Release|Any CPU.Build.0 = Release|Any CPU {D1B91861-A448-4762-A313-C7BC179F4415}.Release|x86.ActiveCfg = Release|x86 {D1B91861-A448-4762-A313-C7BC179F4415}.Release|x86.Build.0 = Release|x86 EndGlobalSection diff --git a/PKHeX/PKHeX.Core.csproj b/PKHeX/PKHeX.Core.csproj index a9c4eab11..937ed2610 100644 --- a/PKHeX/PKHeX.Core.csproj +++ b/PKHeX/PKHeX.Core.csproj @@ -35,7 +35,7 @@ true full false - bin\Mono-Debug\ + bin\x86\Mono-Debug\ DEBUG;MONO prompt 4 @@ -52,7 +52,7 @@ x86 pdbonly true - bin\Mono-Release\ + bin\x86\Mono-Release\ prompt 4 false @@ -74,7 +74,7 @@ true - bin\Debug\ + bin\x86\Debug\ DEBUG;CLICKONCE;WINDOWS full x86 @@ -86,7 +86,7 @@ CLICKONCE;WINDOWS - bin\Release\ + bin\x86\Release\ true pdbonly x86 @@ -97,6 +97,50 @@ false false + + true + bin\Mono-Debug\ + DEBUG;MONO + full + AnyCPU + false + 6 + prompt + MinimumRecommendedRules.ruleset + + + bin\Mono-Release\ + MONO + true + pdbonly + AnyCPU + false + 6 + prompt + MinimumRecommendedRules.ruleset + + + true + bin\Debug\ + DEBUG;CLICKONCE;WINDOWS + full + AnyCPU + false + 6 + prompt + MinimumRecommendedRules.ruleset + + + bin\Release\ + CLICKONCE;WINDOWS + true + pdbonly + AnyCPU + false + 6 + prompt + MinimumRecommendedRules.ruleset + diff --git a/Tests/PKHeX.Tests/PKHeX.Tests.csproj b/Tests/PKHeX.Tests/PKHeX.Tests.csproj index b1e930d39..4c7fbc74a 100644 --- a/Tests/PKHeX.Tests/PKHeX.Tests.csproj +++ b/Tests/PKHeX.Tests/PKHeX.Tests.csproj @@ -38,6 +38,24 @@ MinimumRecommendedRules.ruleset false + + true + bin\Debug\ + DEBUG;TRACE + full + AnyCPU + prompt + MinimumRecommendedRules.ruleset + + + bin\Release\ + TRACE + true + pdbonly + AnyCPU + prompt + MinimumRecommendedRules.ruleset + From f44a8130534f71900906d22a6d98f0aca4529fa7 Mon Sep 17 00:00:00 2001 From: Evan Dixon Date: Thu, 2 Feb 2017 23:47:14 -0600 Subject: [PATCH 2/2] Removed unit tests from mono builds --- PKHeX.sln | 2 -- 1 file changed, 2 deletions(-) diff --git a/PKHeX.sln b/PKHeX.sln index d9a99bde9..03b0d2f8a 100644 --- a/PKHeX.sln +++ b/PKHeX.sln @@ -50,10 +50,8 @@ Global {8E2499BC-C11A-4809-8737-66D35A625425}.Debug|x86.ActiveCfg = Debug|x86 {8E2499BC-C11A-4809-8737-66D35A625425}.Debug|x86.Build.0 = Debug|x86 {8E2499BC-C11A-4809-8737-66D35A625425}.Mono-Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8E2499BC-C11A-4809-8737-66D35A625425}.Mono-Debug|Any CPU.Build.0 = Debug|Any CPU {8E2499BC-C11A-4809-8737-66D35A625425}.Mono-Debug|x86.ActiveCfg = Debug|x86 {8E2499BC-C11A-4809-8737-66D35A625425}.Mono-Release|Any CPU.ActiveCfg = Release|Any CPU - {8E2499BC-C11A-4809-8737-66D35A625425}.Mono-Release|Any CPU.Build.0 = Release|Any CPU {8E2499BC-C11A-4809-8737-66D35A625425}.Mono-Release|x86.ActiveCfg = Release|x86 {8E2499BC-C11A-4809-8737-66D35A625425}.Release|Any CPU.ActiveCfg = Release|Any CPU {8E2499BC-C11A-4809-8737-66D35A625425}.Release|Any CPU.Build.0 = Release|Any CPU