diff --git a/agent/CMakeLists.txt b/agent/CMakeLists.txt
index 23a37fdb3..678aba87b 100644
--- a/agent/CMakeLists.txt
+++ b/agent/CMakeLists.txt
@@ -34,6 +34,7 @@ if(MSVC)
icinga2setupagent
${CMAKE_CURRENT_SOURCE_DIR}/windows-setup-agent/Icinga2SetupAgent.csproj
TYPE FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
+ PLATFORM Win32
)
install(
diff --git a/agent/windows-setup-agent/Icinga2SetupAgent.csproj b/agent/windows-setup-agent/Icinga2SetupAgent.csproj
index e40fe1e6a..a92d61fa3 100644
--- a/agent/windows-setup-agent/Icinga2SetupAgent.csproj
+++ b/agent/windows-setup-agent/Icinga2SetupAgent.csproj
@@ -29,7 +29,7 @@
true
- x86
+ anycpu
true
full
false
@@ -39,7 +39,7 @@
4
- x86
+ anycpu
pdbonly
true
bin\Release\
@@ -48,7 +48,7 @@
4
- x86
+ anycpu
pdbonly
true
bin\RelWithDebInfo\
@@ -57,7 +57,7 @@
4
- x86
+ anycpu
pdbonly
true
bin\MinSizeRel\