A Microsoft platform for building and publishing apps for Windows devices.
Hi @WoodManEXP ,
I understand how frustrating this issue is. Since the app works in F5 debugging but crashes after MSIX installation, the most likely causes are:
- .NET Native compilation stripping reflection metadata (common with JSON serialization in Release builds)
- Synchronous file I/O (.Result / .Wait()) causing crashes inside the
AppContainersandbox
You can verify this by:
- Switch to Release mode
- Enable .NET Native toolchain
- Run the app locally with F5
If it crashes, it is likely a reflection metadata issue.
For Newtonsoft.Json, add metadata preservation in Default.rd.xml. Also ensure all file operations use async/await only.
To capture the exact exception:
- Enable CLR Exceptions in Exception Settings
- Use Debug Installed App Package in Visual Studio
Please try the Release + .NET Native test and share any exception details if available. Hope this helps! If my explanation and the information I provided were helpful, I would greatly appreciate it if you could follow the instructions here so others with the same problem can benefit as well.Hi @WoodManEXP ,
I understand how frustrating this issue is. Since the app works in F5 debugging but crashes after MSIX installation, the most likely causes are:
- .NET Native compilation stripping reflection metadata (common with JSON serialization in Release builds)
- Synchronous file I/O (.Result / .Wait()) causing crashes inside the
AppContainersandbox
You can verify this by:
- Switch to Release mode
- Enable .NET Native toolchain
- Run the app locally with F5
If it crashes, it is likely a reflection metadata issue.
For Newtonsoft.Json, add metadata preservation in Default.rd.xml. Also ensure all file operations use async/await only.
To capture the exact exception:
- Enable CLR Exceptions in Exception Settings
- Use Debug Installed App Package in Visual Studio
Please try the Release + .NET Native test and share any exception details if available.
Hope this helps! If my explanation and the information I provided were helpful, I would greatly appreciate it if you could follow the instructions here so others with the same problem can benefit as well.