diff --git a/win/win32/vs/NetHack.vcxproj b/win/win32/vs/NetHack.vcxproj
index 211181e93..02240e2c0 100644
--- a/win/win32/vs/NetHack.vcxproj
+++ b/win/win32/vs/NetHack.vcxproj
@@ -1,4 +1,4 @@
-
+
@@ -9,18 +9,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -53,42 +42,9 @@
-
-
-
-
- true
- false
+
+ 4701;4702;4244;4310
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/win/win32/vs/NetHackProperties.props b/win/win32/vs/NetHackProperties.props
index 25f634a7b..0d595c4f2 100644
--- a/win/win32/vs/NetHackProperties.props
+++ b/win/win32/vs/NetHackProperties.props
@@ -5,7 +5,10 @@
3
7
0
- 5.4.2
+ 5
+ 4
+ 2>
+ $(LUA_MAJOR_VERSION).$(LUA_MINOR_VERSION).$(LUA_PATCH_LEVEL)
true
diff --git a/win/win32/vs/NetHackW.vcxproj b/win/win32/vs/NetHackW.vcxproj
index cd8f67d1a..0791957cd 100644
--- a/win/win32/vs/NetHackW.vcxproj
+++ b/win/win32/vs/NetHackW.vcxproj
@@ -8,18 +8,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -47,42 +36,9 @@
-
-
-
-
- true
- false
+
+ 4701;4702;4244;4310
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/win/win32/vs/files.props b/win/win32/vs/files.props
index 5aeae719e..5d955fe66 100644
--- a/win/win32/vs/files.props
+++ b/win/win32/vs/files.props
@@ -188,4 +188,39 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/win/win32/vs/recover.vcxproj b/win/win32/vs/recover.vcxproj
index d7f593065..27828e5ec 100644
--- a/win/win32/vs/recover.vcxproj
+++ b/win/win32/vs/recover.vcxproj
@@ -7,18 +7,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
+