Skip to content

Conversation

@StephaneDelcroix
Copy link
Contributor

@StephaneDelcroix StephaneDelcroix commented Aug 1, 2025

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

replace the [XamlProcessing] attributes by msbuild metadata

Issues Fixed

Fixes #30877

@StephaneDelcroix StephaneDelcroix changed the base branch from main to net10.0 August 1, 2025 15:28
@StephaneDelcroix StephaneDelcroix force-pushed the dev/stdelc/inflatorparameters branch 4 times, most recently from 6f828ce to 6d44bcb Compare August 4, 2025 06:45
@StephaneDelcroix StephaneDelcroix force-pushed the dev/stdelc/inflatorparameters branch from 763f750 to e4d4b6d Compare August 5, 2025 12:46
@StephaneDelcroix StephaneDelcroix marked this pull request as ready for review August 5, 2025 12:47
Copilot AI review requested due to automatic review settings August 5, 2025 12:47
@StephaneDelcroix StephaneDelcroix requested a review from a team as a code owner August 5, 2025 12:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the deprecated XamlProcessingAttribute and associated public APIs from the XAML system, transitioning from attribute-based configuration to MSBuild metadata for specifying XAML inflators. The changes clean up the codebase by removing obsolete APIs and updating the unit test infrastructure to use the new MSBuild-based configuration approach.

  • Removes XamlProcessingAttribute and its usage across all test files
  • Updates build configuration to use MSBuild metadata for XAML inflator specification
  • Cleans up unit test class accessibility modifiers and structure

Reviewed Changes

Copilot reviewed 271 out of 422 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/Controls/src/Xaml/XamlProcessingAttribute.cs Removes the entire XamlProcessingAttribute class
src/Controls/src/Xaml/XamlInflator.cs Converts public enum to internal enum and removes documentation
src/Controls/src/Xaml/XamlCompilationAttribute.cs Adds obsolete attributes and conditional compilation
src/Controls/tests/Xaml.UnitTests/Controls.Xaml.UnitTests.csproj Updates MSBuild configuration for XAML inflator specification
src/Controls/tests/Xaml.UnitTests/**/*.xaml.cs Removes XamlProcessingAttribute usage and updates test class modifiers
src/Controls/src/Xaml/PublicAPI/**/*.txt Updates public API surface to remove obsoleted types

@StephaneDelcroix StephaneDelcroix force-pushed the dev/stdelc/inflatorparameters branch 5 times, most recently from 49cd145 to a122733 Compare August 6, 2025 06:33
@PureWeen PureWeen added the p/0 Current heighest priority issues that we are targeting for a release. label Aug 7, 2025
@PureWeen PureWeen moved this from Todo to Ready To Review in MAUI SDK Ongoing Aug 7, 2025
@PureWeen PureWeen modified the milestones: .NET 10.0-rc1, .NET 10.0-rc2 Aug 17, 2025
@StephaneDelcroix StephaneDelcroix force-pushed the dev/stdelc/inflatorparameters branch 2 times, most recently from 696c926 to a46a6ca Compare August 19, 2025 12:49
Copy link
Member

@jonathanpeppers jonathanpeppers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My comments were pretty minor, but it looked like one spot could throw a NRE.


<ItemGroup>
<Compile Include="..\..\..\Core\tests\UnitTests\TestClasses\DispatcherStub.cs" Link="TestClasses\DispatcherStub.cs" />
<!-- <Compile Remove="$(CompilerGeneratedFilesOutputPath)\**\*.cs" /> -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<!-- <Compile Remove="$(CompilerGeneratedFilesOutputPath)\**\*.cs" /> -->

Comment on lines +9 to +11

<!-- <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>Generated</CompilerGeneratedFilesOutputPath> -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<!-- <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>Generated</CompilerGeneratedFilesOutputPath> -->

@StephaneDelcroix StephaneDelcroix changed the title Dev/stdelc/inflatorparameters Xaml Inflator parameters Aug 20, 2025
removes newly introduced XamlProcessing attribute in favor of msbuild
item metadata. prepare the work to obsolete XamlCompilationAttribute too
@StephaneDelcroix StephaneDelcroix force-pushed the dev/stdelc/inflatorparameters branch from 3eaa8d1 to 23c987e Compare August 20, 2025 11:33
@rmarinho
Copy link
Member

/backport to release/10.0.1xx-rc1

@github-actions
Copy link
Contributor

Started backporting to release/10.0.1xx-rc1: https://github.com/dotnet/maui/actions/runs/17102222596

@PureWeen PureWeen modified the milestones: .NET 10.0-rc2, .NET 10.0-rc1 Aug 20, 2025
@rmarinho rmarinho merged commit f37cc20 into net10.0 Aug 20, 2025
146 of 148 checks passed
@rmarinho rmarinho deleted the dev/stdelc/inflatorparameters branch August 20, 2025 15:33
@github-project-automation github-project-automation bot moved this from Ready To Review to Done in MAUI SDK Ongoing Aug 20, 2025
@PureWeen PureWeen added the area-xaml XAML, CSS, Triggers, Behaviors label Aug 20, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Sep 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-xaml XAML, CSS, Triggers, Behaviors p/0 Current heighest priority issues that we are targeting for a release.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants