diff --git a/openrct2.vcxproj b/openrct2.vcxproj
index e5b4bd9f4e..9615badaff 100644
--- a/openrct2.vcxproj
+++ b/openrct2.vcxproj
@@ -83,6 +83,7 @@
+
@@ -357,6 +358,7 @@
+
diff --git a/src/network/NetworkKey.cpp b/src/network/NetworkKey.cpp
index 917812b1f0..877a3c0b89 100644
--- a/src/network/NetworkKey.cpp
+++ b/src/network/NetworkKey.cpp
@@ -14,6 +14,8 @@
*****************************************************************************/
#pragma endregion
+#ifndef DISABLE_NETWORK
+
#include "NetworkKey.h"
#include "../diagnostic.h"
@@ -391,3 +393,5 @@ bool NetworkKey::Verify(const char *md, const size_t len, const char* sig, const
return false;
}
}
+
+#endif // DISABLE_NETWORK