diff --git a/Directory.Build.props b/Directory.Build.props
index 254fb034..c051dddf 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -1,5 +1,5 @@
- 11.3.9
+ 12.0.2
diff --git a/src/NetSparkle.UI.Avalonia/CheckingForUpdatesWindow.axaml.cs b/src/NetSparkle.UI.Avalonia/CheckingForUpdatesWindow.axaml.cs
index 3f583730..4e4f0795 100644
--- a/src/NetSparkle.UI.Avalonia/CheckingForUpdatesWindow.axaml.cs
+++ b/src/NetSparkle.UI.Avalonia/CheckingForUpdatesWindow.axaml.cs
@@ -35,7 +35,7 @@ public CheckingForUpdatesWindow(Bitmap? iconBitmap)
{
this.InitializeComponent();
#if DEBUG
- this.AttachDevTools();
+ Application.Current?.AttachDeveloperTools();
#endif
Closing += CheckingForUpdatesWindow_Closing;
var imageControl = this.FindControl("AppIcon");
diff --git a/src/NetSparkle.UI.Avalonia/NetSparkle.UI.Avalonia.csproj b/src/NetSparkle.UI.Avalonia/NetSparkle.UI.Avalonia.csproj
index e62cb4e7..e212f6da 100644
--- a/src/NetSparkle.UI.Avalonia/NetSparkle.UI.Avalonia.csproj
+++ b/src/NetSparkle.UI.Avalonia/NetSparkle.UI.Avalonia.csproj
@@ -1,7 +1,7 @@
- net10.0;net9.0;net8.0;net7.0;net6.0;netstandard2.0
+ net10.0;net8.0;net9.0
true
NetSparkleUpdater.UI.Avalonia
3.1.0-preview20260409001
@@ -91,10 +91,10 @@
-
+
-
+
diff --git a/src/NetSparkle.UI.Avalonia/UpdateAvailableWindow.axaml.cs b/src/NetSparkle.UI.Avalonia/UpdateAvailableWindow.axaml.cs
index c4acac5c..4643e24c 100644
--- a/src/NetSparkle.UI.Avalonia/UpdateAvailableWindow.axaml.cs
+++ b/src/NetSparkle.UI.Avalonia/UpdateAvailableWindow.axaml.cs
@@ -56,7 +56,7 @@ public UpdateAvailableWindow(UpdateAvailableWindowViewModel viewModel, Bitmap? i
imageControl.Source = iconBitmap;
}
#if DEBUG
- this.AttachDevTools();
+ Application.Current?.AttachDeveloperTools();
#endif
DataContext = _dataContext = viewModel;
_dataContext.ReleaseNotesDisplayer = this;