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

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

Closed
wants to merge 1 commit into from

Conversation

dansiegel
Copy link
Contributor

Fixes: #

PR Type

What kind of change does this PR introduce?

  • Bugfix

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
Copy link
Member

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.

@dansiegel dansiegel deleted the dev/ds/invalid-architecture branch May 21, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resizetizer does not run properly when PROCESSOR_ARCHITECTURE is x86
3 participants