Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update All Nuget and now project uses .net7 #8

Merged
merged 1 commit into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/PostDroid/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ public override void OnFrameworkInitializationCompleted()
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
{
desktop.MainWindow = new MainWindow();
_notificationManager = new WindowNotificationManager(desktop.MainWindow);
_notificationManager.Position = NotificationPosition.BottomRight;
_notificationManager = new WindowNotificationManager(desktop.MainWindow)
{
Position = NotificationPosition.BottomRight
};
desktop.MainWindow.DataContext = new MainWindowViewModel(_notificationManager);
}

Expand Down
7 changes: 7 additions & 0 deletions src/PostDroid/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using Avalonia;
using Avalonia.ReactiveUI;
using Xilium.CefGlue;
using Xilium.CefGlue.Common;

namespace SuperPostDroidPunk
{
Expand All @@ -15,6 +17,11 @@ public static void Main(string[] args) => BuildAvaloniaApp()
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.With(new Win32PlatformOptions
{
UseWindowsUIComposition = false
})
.AfterSetup(_ => CefRuntimeLoader.Initialize(new CefSettings()))
.LogToTrace()
.UseReactiveUI();
}
Expand Down
18 changes: 9 additions & 9 deletions src/PostDroid/SuperPostDroidPunk.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Nullable>enable</Nullable>
<PackageIcon>SuperPostDroidPunk-Logo.png</PackageIcon>
Expand All @@ -20,14 +20,14 @@
<None Remove="Assets\SuperPostDroidPunk-mac.icns" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="0.10.10" />
<PackageReference Include="Avalonia.Desktop" Version="0.10.10" />
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.10" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.10.10" />
<PackageReference Include="CefGlue.Avalonia" Version="91.4472.15" />
<PackageReference Include="Flurl" Version="3.0.2" />
<PackageReference Include="LiteDB" Version="5.0.13" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
<PackageReference Include="Avalonia" Version="0.10.19" />
<PackageReference Include="Avalonia.Desktop" Version="0.10.19" />
<PackageReference Include="Avalonia.Diagnostics" Version="0.10.19" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.10.19" />
<PackageReference Include="CefGlue.Avalonia" Version="106.5249.7" />
<PackageReference Include="Flurl" Version="3.0.7" />
<PackageReference Include="LiteDB" Version="5.0.16" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>
<ItemGroup>
<None Include="Assets\SuperPostDroidPunk-Logo.png">
Expand Down
Loading