NuGet Changes: Update Avalonia

move back to Reactive UI
This commit is contained in:
Torben Nehmer 2024-08-23 17:59:02 +02:00
parent e63ff7defa
commit a9763be8d2
No known key found for this signature in database
3 changed files with 14 additions and 11 deletions

View File

@ -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<App>()
.UsePlatformDetect()
.WithInterFont()
.LogToTrace();
.LogToTrace()
.UseReactiveUI();
public static void __createTestData ()

View File

@ -16,17 +16,18 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
<PackageReference Include="Avalonia.ReactiveUI" Version="11.1.3" />
<PackageReference Include="CsvHelper" Version="33.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.8" />
<PackageReference Include="Avalonia" Version="11.0.10" />
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.0.10" />
<PackageReference Include="Avalonia.Desktop" Version="11.0.10" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.10" />
<PackageReference Include="Avalonia" Version="11.1.3" />
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.1.3" />
<PackageReference Include="Avalonia.Desktop" Version="11.1.3" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.1.3" />
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.0.10" />
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.0.10" />
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.1.3" />
<PackageReference Include="System.Reactive" Version="6.0.1" />
</ItemGroup>
</Project>

View File

@ -1,7 +1,7 @@
using CommunityToolkit.Mvvm.ComponentModel;
using ReactiveUI;
namespace StarsAssistant.ViewModels;
public class ViewModelBase : ObservableObject
public class ViewModelBase : ReactiveObject
{
}