microsoft / microsoft/microsoft-ui-xaml
Crash occurs when Unpackaged type application in Windows Server 2019 Datacenter OS
- Dominant language
- C++
- Stars
- 8.4k
- Forks
- 942
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 105
Description
### Describe the bug
Hi Team,
In `Windows Server 2019 Datacenter OS`, the application is crashed when the application is changed to "Unpackaged" type by using the Custom Control. You can also be able to replicate by using the below sample.
### Steps to reproduce the bug
[CustomControl.zip](https://github.com/user-attachments/files/16179011/CustomControl.zip)
[SimpleApp.zip](https://github.com/user-attachments/files/16179151/SimpleApp.zip)
1. Open the SimpleApp project.
2. Run the project in the mentioned OS.
3. Note, the application is crashed.
### Expected behavior
It should be run properly in any packaged type.
### Screenshots

### NuGet package version
None
### Packaging type
Unpackaged
### Windows version
_No response_
### IDE
Visual Studio 2022
### Additional context
_No response_
### Steps to reproduce the bug
1. Run the Sample.
2. Note the exception is thrown.
Once we enabled the localization for button, the exception thrown.
### Expected behavior
It should be run smoothly.
### Screenshots
_No response_
### NuGet package version
WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003
### Windows version
_No response_
### Additional context
_No response_
Contributor guide
Research direction
Start with the SimpleApp project and CustomControl sample attached to the issue, running the unpackaged application on Windows Server 2019 Datacenter. Reproduce the crash first without and then with button localization enabled, recording the exception details. Done means the sample runs without crashing in the reported unpackaged configuration.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100