-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Xaml Inflator parameters #30980
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
Xaml Inflator parameters #30980
Conversation
6f828ce to
6d44bcb
Compare
763f750 to
e4d4b6d
Compare
There was a problem hiding this 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
XamlProcessingAttributeand 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 |
...ontrols/src/Build.Tasks/nuget/buildTransitive/netstandard2.0/Microsoft.Maui.Controls.targets
Show resolved
Hide resolved
49cd145 to
a122733
Compare
696c926 to
a46a6ca
Compare
jonathanpeppers
left a comment
There was a problem hiding this 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" /> --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <!-- <Compile Remove="$(CompilerGeneratedFilesOutputPath)\**\*.cs" /> --> |
|
|
||
| <!-- <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> | ||
| <CompilerGeneratedFilesOutputPath>Generated</CompilerGeneratedFilesOutputPath> --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <!-- <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> | |
| <CompilerGeneratedFilesOutputPath>Generated</CompilerGeneratedFilesOutputPath> --> |
removes newly introduced XamlProcessing attribute in favor of msbuild item metadata. prepare the work to obsolete XamlCompilationAttribute too
3eaa8d1 to
23c987e
Compare
|
/backport to release/10.0.1xx-rc1 |
|
Started backporting to release/10.0.1xx-rc1: https://github.com/dotnet/maui/actions/runs/17102222596 |
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