x86 platform targeting for windows not working #19138
Labels
area/winui
Categorizes an issue or PR as relevant to WinUI
difficulty/medium 🤔
Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI
kind/bug
Something isn't working
project/core-tools 🛠️
Categorizes an issue or PR as relevant to core and tools
triage/needs-information
Indicates an issue needs more information in order to work on it.
Current behavior
When using platform target x86 in project properties, the x64 version of Microsoft.WindowsAppRuntime.dll is deployed to the output directory, which causes a BadImageFormatException.
Expected behavior
The x86 version of Microsoft.WindowsAppRuntime.dll must be deployed.
How to reproduce it (as minimally and precisely as possible)
Create a new project (Uno Platform App), change the platform target to x86 in the project properties.
Workaround
Works on UWP/WinUI
None
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
No response
Affected platforms
Windows (WinAppSDK)
IDE
Visual Studio 2022
IDE version
17.12.3
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: