Skip to content

chore: migrate GUI to Avalonia 12#105

Merged
vaceslav merged 2 commits into
mainfrom
chore/avalonia-12-migration
May 21, 2026
Merged

chore: migrate GUI to Avalonia 12#105
vaceslav merged 2 commits into
mainfrom
chore/avalonia-12-migration

Conversation

@vaceslav
Copy link
Copy Markdown
Contributor

Summary

  • Bumps all Avalonia packages (Avalonia, Avalonia.Desktop, Avalonia.Themes.Fluent, Avalonia.Fonts.Inter) from 11.3.10 to 12.0.3 in sync.
  • Removes obsolete DisableAvaloniaDataAnnotationValidation()BindingPlugins is no longer publicly configurable in Avalonia 12, and the DataAnnotations plugin is disabled by default.
  • Replaces Avalonia.Diagnostics with AvaloniaUI.DiagnosticsSupport 2.2.1, the v12 bridge to the external DevTools process (no 12.x Avalonia.Diagnostics exists on NuGet).
  • Renames TextBox.WatermarkPlaceholderText in MainWindow.axaml (Watermark is obsolete in v12).

Closes #104. Supersedes #100, #101, #102 (which each bumped only a subset of Avalonia packages and broke the build).

Test plan

  • dotnet build — clean, 0 warnings, 0 errors
  • dotnet test — 1126/1126 passed
  • dotnet format --verify-no-changes — clean
  • CI matrix (Win/Mac/Linux × .NET 6/8/9/10) green
  • Manual smoke test of GUI app

Follow-up

After merge, group Avalonia* packages in dependabot.yml so future bumps land in a single PR instead of three split PRs.

Bumps all Avalonia packages from 11.3.10 to 12.0.3 in sync and adapts
GUI code to the v12 breaking changes:

- Drop DisableAvaloniaDataAnnotationValidation(): BindingPlugins is no
  longer publicly configurable; the DataAnnotations plugin is now
  disabled by default, so the manual removal is obsolete.
- Replace Avalonia.Diagnostics with AvaloniaUI.DiagnosticsSupport, the
  v12 bridge to the external DevTools process.
- Rename TextBox.Watermark to PlaceholderText (Watermark is obsolete).

Closes #104
Copy link
Copy Markdown

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

Migrates the GUI project to Avalonia 12 by updating the Avalonia dependency set, removing now-obsolete validation plugin configuration, and updating XAML to match renamed APIs.

Changes:

  • Bumped core Avalonia packages (Avalonia, Avalonia.Desktop, Avalonia.Themes.Fluent, Avalonia.Fonts.Inter) to 12.0.3.
  • Replaced Avalonia.Diagnostics with AvaloniaUI.DiagnosticsSupport and kept it effectively Debug-only in build outputs.
  • Removed obsolete DisableAvaloniaDataAnnotationValidation() and updated TextBox Watermark usage to PlaceholderText.

Reviewed changes

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

File Description
TriasDev.Templify.Gui/Views/MainWindow.axaml Updates TextBox placeholder API to Avalonia 12 naming (PlaceholderText).
TriasDev.Templify.Gui/TriasDev.Templify.Gui.csproj Upgrades Avalonia packages to 12.0.3 and swaps diagnostics package to the Avalonia 12-compatible alternative.
TriasDev.Templify.Gui/App.axaml.cs Removes Avalonia 11-era validation plugin manipulation that no longer applies in Avalonia 12.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Migrate GUI to Avalonia 12

2 participants