diff --git a/.gitignore b/.gitignore
index 0b18a8b..76e53a4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,7 +5,7 @@
/.vs/ViGEmBus/v15
/build/bin/Release
/build/obj/Release
-/lib/x64
+/lib
/packages
/sys/x64/Release
/x64/Release
@@ -19,9 +19,8 @@
/build/bin/Debug
/build/obj/Debug
/bin
-/sys/x64/Debug
-/x64/Debug
-/x64/Debug (static)
+/sys/x64
+/x64
*.user
/.vs/config
/sys/RCa21300
@@ -43,5 +42,4 @@
*.aps
/Release_LIB
/src/Release_LIB
-/src/x64/Release_LIB
-/x64/Release_LIB
+/src/x64
diff --git a/build/Build.cs b/build/Build.cs
index 6dd1cf9..0986df4 100644
--- a/build/Build.cs
+++ b/build/Build.cs
@@ -44,7 +44,16 @@ class Build : NukeBuild
.SetTargets("Rebuild")
.SetConfiguration(Configuration)
.SetMaxCpuCount(Environment.ProcessorCount)
- .SetNodeReuse(IsLocalBuild));
+ .SetNodeReuse(IsLocalBuild)
+ .SetTargetPlatform(MSBuildTargetPlatform.x64));
+
+ MSBuild(s => s
+ .SetTargetPath(SolutionFile)
+ .SetTargets("Rebuild")
+ .SetConfiguration(Configuration)
+ .SetMaxCpuCount(Environment.ProcessorCount)
+ .SetNodeReuse(IsLocalBuild)
+ .SetTargetPlatform(MSBuildTargetPlatform.x86));
});
private Target Pack => _ => _
diff --git a/src/ViGEmClient.vcxproj b/src/ViGEmClient.vcxproj
index e087262..bd1aa62 100644
--- a/src/ViGEmClient.vcxproj
+++ b/src/ViGEmClient.vcxproj
@@ -130,31 +130,35 @@
$(ProjectDir)../include;$(VC_IncludePath);$(WindowsSDK_IncludePath);
+ $(SolutionDir)lib\debug\$(PlatformShortName)\
$(ProjectDir)../include;$(VC_IncludePath);$(WindowsSDK_IncludePath);
- $(SolutionDir)bin\$(Platform)\
+ $(SolutionDir)bin\debug\$(PlatformShortName)\
$(ProjectDir)../include;$(VC_IncludePath);$(WindowsSDK_IncludePath);
+ $(SolutionDir)lib\release\$(PlatformShortName)\
$(ProjectDir)../include;$(VC_IncludePath);$(WindowsSDK_IncludePath);
- $(SolutionDir)bin\$(Platform)\
+ $(SolutionDir)bin\release\$(PlatformShortName)\
$(ProjectDir)../include;$(VC_IncludePath);$(WindowsSDK_IncludePath);
+ $(SolutionDir)lib\debug\$(PlatformShortName)\
$(ProjectDir)../include;$(VC_IncludePath);$(WindowsSDK_IncludePath);
- $(SolutionDir)bin\$(Platform)\
+ $(SolutionDir)bin\debug\$(PlatformShortName)\
$(ProjectDir)../include;$(VC_IncludePath);$(WindowsSDK_IncludePath);
+ $(SolutionDir)lib\release\$(PlatformShortName)\
$(ProjectDir)../include;$(VC_IncludePath);$(WindowsSDK_IncludePath);
- $(SolutionDir)bin\$(Platform)\
+ $(SolutionDir)bin\release\$(PlatformShortName)\