Skip to content

Fix device tests build: suppress CS0618 warning for deprecated XamlCompilation attribute#33894

Merged
rmarinho merged 2 commits intofeature/xsf-default-inflator-net11from
copilot/sub-pr-33524
Feb 5, 2026
Merged

Fix device tests build: suppress CS0618 warning for deprecated XamlCompilation attribute#33894
rmarinho merged 2 commits intofeature/xsf-default-inflator-net11from
copilot/sub-pr-33524

Conversation

Copy link
Contributor

Copilot AI commented Feb 4, 2026

Device tests were failing to build with CS0618 errors when the deprecated [XamlCompilation] attribute was treated as an error during CI builds.

Changes

  • Added #pragma warning disable/restore CS0618 around [XamlCompilation] attribute in RadioButtonUsing.xaml.cs
  • Follows the same suppression pattern used in sample projects that need to retain the deprecated attribute for testing purposes

The attribute remains deprecated as intended but no longer breaks the build when warnings are treated as errors.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…mpilation attribute

Co-authored-by: rmarinho <1235097+rmarinho@users.noreply.github.com>
Copilot AI changed the title [WIP] Make XAML Source Generator the default inflator for .NET 11 Fix device tests build: suppress CS0618 warning for deprecated XamlCompilation attribute Feb 4, 2026
Copilot AI requested a review from rmarinho February 4, 2026 17:29
@rmarinho rmarinho marked this pull request as ready for review February 5, 2026 11:50
@rmarinho rmarinho merged commit 37cfc0b into feature/xsf-default-inflator-net11 Feb 5, 2026
2 of 3 checks passed
@rmarinho rmarinho deleted the copilot/sub-pr-33524 branch February 5, 2026 11:51
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.

2 participants