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

Enable compiled bindings by default #10880

Closed
wants to merge 1 commit into from
Closed

Conversation

hez2010
Copy link
Contributor

@hez2010 hez2010 commented Apr 2, 2023

What does the pull request do?

Enable compiled bindings by default.

It's really easy to forget to enable compiled bindings.
So we can just enforce it by default, while users can still opt-out compiled bindings by using /p:AvaloniaUseCompiledBindingsByDefault=false.
This can contribute to help the entire community build a trimming-compatible ecosystem.

What is the current behavior?

Compiled bindings are off by default.

What is the updated/expected behavior with this PR?

Enable it by default.

Breaking changes

Now compiled bindings are enabled by default.

@maxkatz6
Copy link
Member

maxkatz6 commented Apr 2, 2023

@hez2010 for 11.0 we didn't plan to enable compiled bindings by default in all projects, but only in new templates (which was already done).
cc @AvaloniaUI/core

@avaloniaui-team
Copy link
Contributor

You can test this PR using the following package version. 11.0.999-cibuild0032710-beta. (feed url: https://pkgs.dev.azure.com/AvaloniaUI/AvaloniaUI/_packaging/avalonia-all/nuget/v3/index.json) [PRBUILDID]

@robloo
Copy link
Contributor

robloo commented Apr 2, 2023

There are known cases where compiled bindings still don't work (example: #2725). I would not enable this by default yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants