diff --git a/ViGEmBus.sln b/ViGEmBus.sln index 172b657..c5427cf 100644 --- a/ViGEmBus.sln +++ b/ViGEmBus.sln @@ -117,29 +117,17 @@ Global {C722B85E-FC7D-475F-A518-C8E13ECDB201}.Release|x86.ActiveCfg = Release|x86 {C722B85E-FC7D-475F-A518-C8E13ECDB201}.Release|x86.Build.0 = Release|x86 {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Debug_DLL|x64.ActiveCfg = Debug|Any CPU - {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Debug_DLL|x64.Build.0 = Debug|Any CPU {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Debug_DLL|x86.ActiveCfg = Debug|Any CPU - {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Debug_DLL|x86.Build.0 = Debug|Any CPU {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Debug_LIB|x64.ActiveCfg = Debug|Any CPU - {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Debug_LIB|x64.Build.0 = Debug|Any CPU {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Debug_LIB|x86.ActiveCfg = Debug|Any CPU - {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Debug_LIB|x86.Build.0 = Debug|Any CPU {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Debug|x64.ActiveCfg = Debug|Any CPU - {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Debug|x64.Build.0 = Debug|Any CPU {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Debug|x86.ActiveCfg = Debug|Any CPU - {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Debug|x86.Build.0 = Debug|Any CPU {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Release_DLL|x64.ActiveCfg = Release|Any CPU - {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Release_DLL|x64.Build.0 = Release|Any CPU {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Release_DLL|x86.ActiveCfg = Release|Any CPU - {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Release_DLL|x86.Build.0 = Release|Any CPU {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Release_LIB|x64.ActiveCfg = Release|Any CPU - {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Release_LIB|x64.Build.0 = Release|Any CPU {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Release_LIB|x86.ActiveCfg = Release|Any CPU - {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Release_LIB|x86.Build.0 = Release|Any CPU {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Release|x64.ActiveCfg = Release|Any CPU - {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Release|x64.Build.0 = Release|Any CPU {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Release|x86.ActiveCfg = Release|Any CPU - {C2BA387E-D491-4FB7-8BEE-99D77E8949E7}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/build/Build.cs b/build/Build.cs index 2929489..c245839 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -50,10 +50,16 @@ class Build : NukeBuild Console.WriteLine($"DMF solution path: {DmfSolution}"); + var platform = MSBuildTargetPlatform.x64; + + if(AppVeyor.Instance.Platform != null && AppVeyor.Instance.Platform.Equals("x86")) + platform = MSBuildTargetPlatform.Win32; + MSBuild(s => s .SetTargetPath(DmfSolution) .SetTargets("Rebuild") .SetConfiguration(Configuration) + .SetTargetPlatform(platform) .SetMaxCpuCount(Environment.ProcessorCount) .SetNodeReuse(IsLocalBuild)); });