microsoft / microsoft/WindowsAppSDK
SupportedOSPlatform is ignored by the installer
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 4.7k
- Forks
- 471
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 28
Description
### Describe the bug
We have upgraded our TargetFramework to net8.0-windows10.0.22621.0, but left the SupportedOSPlatform on 10.0.19041.0.
However, doing this means the installer no longer allows us to install our windows APP on any Windows version older then 22621.
Is this intentional? If so, what is the point of SupportedOSPlatform?
### Steps to reproduce the bug
Set your settings as follows:

### Expected behavior
We are able to install on Windows version 14091.
### Screenshots
The installer returns the following reason for installation failure:
App installation failed with error message: Windows cannot install package because this package is not compatible with the device. The package requires OS version 10.0.22621.0 or higher on the Windows.Desktop device family. The device is currently running OS version 10.0.19041.208. (0x80073cfd)
### NuGet package version
Windows App SDK 1.5.6: 1.5.240802000
### Packaging type
Packaged (MSIX)
### Windows version
Windows 10 version 2004 (19041, May 2020 Update)
### IDE
Visual Studio 2022
### Additional context
We have to upgrade the TFM due to the CommunityToolkit requiring this for an upcoming version. But I have tested this behavior without those new packages (so only the above mentioned change) and this error still happens.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the stated net8.0-windows10.0.22621.0 target and SupportedOSPlatform 10.0.19041.0 settings in a packaged MSIX app. Inspect how the installer derives its minimum Windows version, then verify the result against Windows 10 version 2004 (19041); done means the package installs on that version when SupportedOSPlatform allows it.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100