diff --git a/Directory.Build.props b/Directory.Build.props
index 3962b12d8472..db6dc7e40216 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -26,9 +26,10 @@
<_MauiTargetPlatformIsmacOS Condition="'$(_MauiTargetPlatformIdentifier)' == 'macos'">True
<_MauiTargetPlatformIstvOS>false
<_MauiTargetPlatformIstvOS Condition="'$(_MauiTargetPlatformIdentifier)' == 'tvos'">True
- <_MauiTargetPlatformIsWindows>false
- <_MauiTargetPlatformIsWindows Condition="$(_MauiTargetPlatformIdentifier.Contains('windows')) == 'True'">True
<_MauiTargetPlatformIsTizen>false
+ <_WindowsTargetIsWinAppSDK Condition="'$(UseWPF)' == 'true' OR '$(UseWindowsForms)' == 'true' " >false
+ <_MauiTargetPlatformIsWinAppSDK>false
+ <_MauiTargetPlatformIsWinAppSDK Condition="'$(_WindowsTargetIsWinAppSDK)' != 'false' and $(_MauiTargetPlatformIdentifier.Contains('windows')) == 'True'">True
<_MauiTargetPlatformIsTizen Condition="'$(_MauiTargetPlatformIdentifier)' == 'tizen'">True
@@ -51,7 +52,7 @@
true
true
- true
+ true
true
true
true
@@ -63,7 +64,7 @@
- true
+ true
true
true
true
@@ -72,7 +73,7 @@
- $(DefineConstants);WINDOWS
+ $(DefineConstants);WINDOWS
$(DefineConstants);COMPATIBILITY_ENABLED
snupkg
diff --git a/Directory.Build.targets b/Directory.Build.targets
index 6878b73497ae..98951a7a3478 100644
--- a/Directory.Build.targets
+++ b/Directory.Build.targets
@@ -49,7 +49,7 @@
because we don't want to set these properties for WPF projects...
There's probably a better way we should find to infer this
-->
-
+
10.0.17763.0
10.0.17763.0
@@ -64,19 +64,19 @@
-
+
-
+
-
+
diff --git a/src/MultiTargeting.targets b/src/MultiTargeting.targets
index 01d6d8ff280f..9ff2c5c390f8 100644
--- a/src/MultiTargeting.targets
+++ b/src/MultiTargeting.targets
@@ -39,7 +39,7 @@
-
+
@@ -55,7 +55,7 @@
-
+
@@ -107,7 +107,7 @@
-
+
WINDOWS;$(DefineConstants)