From a9763be8d2f2e591e1b442ba42aa43ae530ee0b5 Mon Sep 17 00:00:00 2001 From: Torben Nehmer Date: Fri, 23 Aug 2024 17:59:02 +0200 Subject: [PATCH] NuGet Changes: Update Avalonia move back to Reactive UI --- Stars Assistant/Program.cs | 6 ++++-- Stars Assistant/Stars Assistant.csproj | 15 ++++++++------- Stars Assistant/ViewModels/ViewModelBase.cs | 4 ++-- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/Stars Assistant/Program.cs b/Stars Assistant/Program.cs index edc97b8..4029ab1 100644 --- a/Stars Assistant/Program.cs +++ b/Stars Assistant/Program.cs @@ -6,6 +6,7 @@ using CsvHelper.Configuration; using CsvHelper; using StarsAssistant.Model; using System.Globalization; +using Avalonia.ReactiveUI; namespace StarsAssistant; @@ -21,7 +22,7 @@ sealed class Program __createTestData(); BuildAvaloniaApp() - .StartWithClassicDesktopLifetime(args); + .StartWithClassicDesktopLifetime(args); } // Avalonia configuration, don't remove; also used by visual designer. @@ -29,7 +30,8 @@ sealed class Program => AppBuilder.Configure() .UsePlatformDetect() .WithInterFont() - .LogToTrace(); + .LogToTrace() + .UseReactiveUI(); public static void __createTestData () diff --git a/Stars Assistant/Stars Assistant.csproj b/Stars Assistant/Stars Assistant.csproj index 3437de0..e07b684 100644 --- a/Stars Assistant/Stars Assistant.csproj +++ b/Stars Assistant/Stars Assistant.csproj @@ -16,17 +16,18 @@ - + - + - - - - + + + + - + + diff --git a/Stars Assistant/ViewModels/ViewModelBase.cs b/Stars Assistant/ViewModels/ViewModelBase.cs index 3d1cbcc..6bbc936 100644 --- a/Stars Assistant/ViewModels/ViewModelBase.cs +++ b/Stars Assistant/ViewModels/ViewModelBase.cs @@ -1,7 +1,7 @@ -using CommunityToolkit.Mvvm.ComponentModel; +using ReactiveUI; namespace StarsAssistant.ViewModels; -public class ViewModelBase : ObservableObject +public class ViewModelBase : ReactiveObject { }