File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >net10 .0</TargetFramework >
4+ <TargetFramework >net9 .0</TargetFramework >
55 <ImplicitUsings >enable</ImplicitUsings >
66 <Nullable >enable</Nullable >
77 </PropertyGroup >
1818 </PackageReference >
1919 <PackageReference Include =" CommunityToolkit.Mvvm" Version =" 8.4.0" />
2020 <PackageReference Include =" DynamicData" Version =" 9.4.1" />
21- <PackageReference Include =" FluentAvaloniaUI" Version =" 2.5.0 " />
21+ <PackageReference Include =" FluentAvaloniaUI" Version =" 2.4.1 " />
2222 <PackageReference Include =" Microsoft.Extensions.Hosting" Version =" 10.0.3" />
2323 <PackageReference Include =" Pastel" Version =" 4.2.0" />
2424 <PackageReference Include =" Xaml.Behaviors" Version =" 11.3.9.5" />
Original file line number Diff line number Diff line change 33 <OutputType >Exe</OutputType >
44 <!-- If you are willing to use platform-specific APIs, use conditional compilation.
55 See https://docs.avaloniaui.net/docs/guides/platforms/platform-specific-code/dotnet for more details.-->
6- <TargetFramework >net10 .0</TargetFramework >
6+ <TargetFramework >net9 .0</TargetFramework >
77 <Nullable >enable</Nullable >
88 <BuiltInComInteropSupport >true</BuiltInComInteropSupport >
99 <ApplicationIcon >..\SecRandom\Assets\AppLogo.ico</ApplicationIcon >
Original file line number Diff line number Diff line change 88using Avalonia . Controls . ApplicationLifetimes ;
99using Avalonia . Data . Core . Plugins ;
1010using Avalonia . Markup . Xaml ;
11- using Avalonia . Markup . Xaml . Converters ;
1211using Avalonia . Markup . Xaml . MarkupExtensions ;
1312using Avalonia . Media ;
1413using Avalonia . Media . Imaging ;
1514using Avalonia . Platform ;
1615using Avalonia . Styling ;
17- using DynamicData ;
16+ using HotAvalonia ;
1817using Microsoft . Extensions . DependencyInjection ;
1918using Microsoft . Extensions . Hosting ;
2019using Microsoft . Extensions . Logging ;
@@ -49,6 +48,7 @@ public partial class App : Application
4948
5049 public override void Initialize ( )
5150 {
51+ this . EnableHotReload ( ) ;
5252 AvaloniaXamlLoader . Load ( this ) ;
5353 CreateTrayIconMenu ( ) ;
5454 }
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22 <PropertyGroup >
3- <TargetFramework >net10 .0</TargetFramework >
3+ <TargetFramework >net9 .0</TargetFramework >
44 <Nullable >enable</Nullable >
55 <LangVersion >latest</LangVersion >
66 <AvaloniaUseCompiledBindingsByDefault >true</AvaloniaUseCompiledBindingsByDefault >
1414 <ProjectReference Include =" ..\SecRandom.Core\SecRandom.Core.csproj" />
1515 </ItemGroup >
1616
17+ <PropertyGroup Condition =" '$(Configuration)' == 'Debug'" >
18+ <DefineConstants >$(DefineConstants);ENABLE_XAML_HOT_RELOAD</DefineConstants >
19+ </PropertyGroup >
20+
21+ <ItemGroup >
22+ <PackageReference Condition =" $(DefineConstants.Contains(ENABLE_XAML_HOT_RELOAD))" Include =" Avalonia.Markup.Xaml.Loader" Version =" $(AvaloniaVersion)" />
23+ <PackageReference Condition =" $(DefineConstants.Contains(ENABLE_XAML_HOT_RELOAD))" Include =" HotAvalonia" Version =" 2.1.0" />
24+ <PackageReference Include =" HotAvalonia.Extensions" Version =" 2.1.0" PrivateAssets =" All" />
25+ </ItemGroup >
26+
1727 <ItemGroup >
1828 <EmbeddedResource Update =" Langs\Common\Resources.resx" >
1929 <Generator >PublicResXFileCodeGenerator</Generator >
You can’t perform that action at this time.
0 commit comments