Upgrade Avalonia UI Version

Avalonia UI package upgrade to 0.10.0, System.Reactive isn't longer required by now.
This commit is contained in:
Joseph Moreno 2021-01-26 18:56:08 -05:00
parent 4a2207a19f
commit 48d100013b
4 changed files with 8 additions and 14 deletions

View File

@ -5,6 +5,7 @@ using System.Reflection;
using System.Runtime.InteropServices;
using Avalonia.Media.Imaging;
using ReactiveUI;
namespace AvaloniaCoreRTDemo
{
public class AboutWindowViewModel : ReactiveObject

View File

@ -13,7 +13,7 @@
<IlcGenerateStackTraceData>false</IlcGenerateStackTraceData>
<IlcDisableUnhandledExceptionExperience>true</IlcDisableUnhandledExceptionExperience>
</PropertyGroup>
<ItemGroup Condition="$(RuntimeIdentifier.StartsWith('win'))">
<!-- Instruct CoreRT to use this native dependency, required to build Avalonia. This library comes from the Windows SDK. -->
<NativeLibrary Include="WindowsApp.lib" />
@ -32,12 +32,10 @@
<EmbeddedResource Include="windows.png" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="0.9.11" />
<PackageReference Include="Avalonia.Desktop" Version="0.9.11" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.9.11" />
<PackageReference Include="Avalonia" Version="0.10.0" />
<PackageReference Include="Avalonia.Desktop" Version="0.10.0" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.10.0" />
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="6.0.0-*" />
<!-- This is a hack. Avalonia 0.9.10 depends on a version of System.Reactive prior 4.4.1, which contains a critical fix for building with CoreRT -->
<PackageReference Include="System.Reactive" Version="5.0" />
</ItemGroup>
<ItemGroup>
<!-- Avalonia relies heavily on reflection. Describe types reflected upon here. -->

View File

@ -1,5 +1,4 @@
using Avalonia;
using Avalonia.Media.Imaging;
using Avalonia.Media.Imaging;
using ReactiveUI;
using System;
using System.Reactive;

View File

@ -1,8 +1,4 @@
using System;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Logging.Serilog;
using Avalonia;
namespace AvaloniaCoreRTDemo
{
@ -18,6 +14,6 @@ namespace AvaloniaCoreRTDemo
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.LogToDebug();
.LogToTrace();
}
}