diff --git a/build/NuSpecs/Microsoft.WindowsAppSDK.Foundation.targets b/build/NuSpecs/Microsoft.WindowsAppSDK.Foundation.targets index 925af86b05..7c162be234 100644 --- a/build/NuSpecs/Microsoft.WindowsAppSDK.Foundation.targets +++ b/build/NuSpecs/Microsoft.WindowsAppSDK.Foundation.targets @@ -16,6 +16,14 @@ + + + + + $(SupportedOSPlatformVersion) + + + diff --git a/build/NuSpecs/WindowsAppSDK-Nuget-Common.targets b/build/NuSpecs/WindowsAppSDK-Nuget-Common.targets index 7c3e96307e..3874c629cb 100644 --- a/build/NuSpecs/WindowsAppSDK-Nuget-Common.targets +++ b/build/NuSpecs/WindowsAppSDK-Nuget-Common.targets @@ -1,20 +1,30 @@ - + + + + + + + $(SupportedOSPlatformVersion) + + + - $([System.Version]::Parse('$(TargetPlatformMinVersion)').Build) $([System.Version]::Parse('$(TargetPlatformVersion)').Build) diff --git a/build/NuSpecs/WindowsAppSDK-Nuget-Native.targets b/build/NuSpecs/WindowsAppSDK-Nuget-Native.targets index e959cfda9d..d2905f3991 100644 --- a/build/NuSpecs/WindowsAppSDK-Nuget-Native.targets +++ b/build/NuSpecs/WindowsAppSDK-Nuget-Native.targets @@ -165,4 +165,12 @@ + + + + + $(SupportedOSPlatformVersion) + + + diff --git a/docs/faq.md b/docs/faq.md index b2127ff609..af13e2fb62 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -178,6 +178,10 @@ In-box components will be supported forever in the usual way. We have no plans t (remove their usability) at this time. We will likely slow down or pause investment in the in-box components while we focus on making the Windows App SDK surface complete. +## How does Windows App SDK handle SupportedOSPlatformVersion and TargetPlatformMinVersion? + +When using Windows App SDK with .NET projects that set both `TargetFramework` (like net8.0-windows10.0.22621.0) and `SupportedOSPlatformVersion` (like 10.0.19041.0), Windows App SDK will ensure that `TargetPlatformMinVersion` is set to match `SupportedOSPlatformVersion` if `TargetPlatformMinVersion` is not explicitly defined. This ensures that your app can be installed on all operating system versions that you've indicated support for via `SupportedOSPlatformVersion`, rather than just the OS version specified in `TargetFramework`. + ## I don't see my question here! [Create an issue to ask a question or start a discussion](https://github.com/microsoft/WindowsAppSDK/issues/new/choose).