unoplatform / uno.resizetizer

The home for Uno.Resizetizer, an image resizting tooling for Uno Platform apps
https://platform.uno
Other
15 stars 6 forks source link

Add error when Processor Architecture doesn't match Runtime #266

Closed dansiegel closed 1 month ago

dansiegel commented 1 month ago

Fixes: #

PR Type

What kind of change does this PR introduce?

What is the current behavior?

If the Processor Architecture does not match the Runtime Architecture of the dotnet tooling an invalid runtime will be selected by for the compiled runtime assets for SkiaSharp

What is the new behavior?

If there is a mismatch on Windows where the Processor is x86 and the runtime is x64 we will now raise a build error letting you know that the environment is not valid. This includes a check for AMD64 so that we normalize this value allowing the check to pass for x64 since the two are compatible.

jeromelaban commented 1 month ago

There's no obvious way to determine which architecture will be used by msbuild at this point. We'll revisit this in the future if the error becomes more common.