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

Added default excludes for AvaloniaXaml #13809

Merged
merged 1 commit into from
Dec 3, 2023

Conversation

jp2masa
Copy link
Contributor

@jp2masa jp2masa commented Dec 2, 2023

What does the pull request do?

Adds the default excludes to the default include of Avalonia XAML files in the build targets.

What is the current behavior?

Avalonia XAML files included by default do not respect the default excludes, unlike all other files included by default in the .NET SDK.

What is the updated/expected behavior with this PR?

Avalonia XAML files included by default respect the default excludes.

How was the solution implemented (if it's not obvious)?

Copied the exclude behavior from the .NET SDK (reference):

Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)"

Looking at a preprocessed msbuild xml file, this exclude appears in most (if not all) default item includes in the .NET SDK.

Checklist

Breaking changes

The default behavior of Avalonia build targets changed, but it is now aligned with the .NET SDK.

Fixed issues

Fixes #13723

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0042580-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added the backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch label Dec 3, 2023
@maxkatz6 maxkatz6 added this pull request to the merge queue Dec 3, 2023
Merged via the queue into AvaloniaUI:master with commit 7b4bfcf Dec 3, 2023
6 checks passed
@jp2masa jp2masa deleted the xaml-default-excludes branch December 3, 2023 18:00
@maxkatz6 maxkatz6 added backported-11.0.x and removed backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch labels Dec 5, 2023
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.

3 participants