Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x86 platform targeting for windows not working #19138

Open
beavis88 opened this issue Dec 28, 2024 · 1 comment
Open

x86 platform targeting for windows not working #19138

beavis88 opened this issue Dec 28, 2024 · 1 comment
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.

Comments

@beavis88
Copy link

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

@beavis88 beavis88 added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Dec 28, 2024
@MartinZikmund MartinZikmund added project/core-tools 🛠️ Categorizes an issue or PR as relevant to core and tools difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI area/winui Categorizes an issue or PR as relevant to WinUI and removed triage/untriaged Indicates an issue requires triaging or verification difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Jan 2, 2025
@jeromelaban
Copy link
Member

Thanks for the report.

The default template does not provide any x86 target by default. How did you create this platform in your solution? Make sure to provide all the steps you used.

@jeromelaban jeromelaban added the triage/needs-information Indicates an issue needs more information in order to work on it. label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

3 participants