diff --git a/templates/vsprojects/vcxproj_defs.include b/templates/vsprojects/vcxproj_defs.include
index 0d6da3dfdf6..10d23f55a34 100644
--- a/templates/vsprojects/vcxproj_defs.include
+++ b/templates/vsprojects/vcxproj_defs.include
@@ -76,6 +76,8 @@ ${gen_package_props(packages, repo_root)}\
${project_guid if project_guid else project.vs_project_guid}
+## Silence MSB8029 warning. See #4506
+ true
@@ -148,6 +150,8 @@ ${gen_package_props(packages, repo_root)}\
MultiThreadedDebug
true
None
+## Silence D9007 warning. See #4508
+ false
${get_subsystem(project.is_library)}
@@ -165,6 +169,7 @@ ${gen_package_props(packages, repo_root)}\
MultiThreadedDebug
true
None
+ false
${get_subsystem(project.is_library)}
@@ -184,6 +189,7 @@ ${gen_package_props(packages, repo_root)}\
MultiThreaded
true
None
+ false
${get_subsystem(project.is_library)}
@@ -205,6 +211,7 @@ ${gen_package_props(packages, repo_root)}\
MultiThreaded
true
None
+ false
${get_subsystem(project.is_library)}
@@ -225,6 +232,7 @@ ${gen_package_props(packages, repo_root)}\
MultiThreadedDebug
true
None
+ false
${get_subsystem(project.is_library)}
@@ -242,6 +250,7 @@ ${gen_package_props(packages, repo_root)}\
MultiThreadedDebug
true
None
+ false
${get_subsystem(project.is_library)}
@@ -261,6 +270,7 @@ ${gen_package_props(packages, repo_root)}\
MultiThreaded
true
None
+ false
${get_subsystem(project.is_library)}
@@ -282,6 +292,7 @@ ${gen_package_props(packages, repo_root)}\
MultiThreaded
true
None
+ false
${get_subsystem(project.is_library)}