diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props
index 92c7849d3bc..36c4c269d05 100644
--- a/PCbuild/pyproject.props
+++ b/PCbuild/pyproject.props
@@ -21,6 +21,13 @@
false
+
+ <_VCToolsVersion>$([System.Version]::Parse(`$(VCToolsVersion)`).Major).$([System.Version]::Parse(`$(VCToolsVersion)`).Minor)
+
+
+ true
+
+
<_DebugPreprocessorDefinition>NDEBUG;
<_DebugPreprocessorDefinition Condition="$(Configuration) == 'Debug'">_DEBUG;
@@ -50,6 +57,7 @@
/utf-8 %(AdditionalOptions)
-Wno-deprecated-non-prototype -Wno-unused-label -Wno-pointer-sign -Wno-incompatible-pointer-types-discards-qualifiers -Wno-unused-function %(AdditionalOptions)
-flto %(AdditionalOptions)
+ -d2pattern-opt-disable:-932189325 %(AdditionalOptions)
OnlyExplicitInline
@@ -79,6 +87,7 @@
PGUpdate
advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;%(AdditionalDependencies)
/OPT:REF,NOICF %(AdditionalOptions)
+ -d2:-pattern-opt-disable:-932189325 %(AdditionalOptions)
true