net9 + basic splash

This commit is contained in:
zznty
2024-12-30 03:10:47 +07:00
parent 5af1c51be8
commit 7e9813d2a7
22 changed files with 257 additions and 1985 deletions

View File

@@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
<TargetFramework>net9.0-windows10.0.19041.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
@@ -14,9 +14,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Gameloop.Vdf" Version="0.6.2" />
<PackageReference Include="NLog.Schema" Version="5.3.4" />
<PackageReference Include="Velopack" Version="0.0.630-g9c52e40" />
<PackageReference Include="Velopack" Version="0.0.942" />
</ItemGroup>
<ItemGroup>

View File

@@ -18,13 +18,17 @@ public class GameDirectoryAssemblyLoadContext : AssemblyLoadContext, ICoreLoadCo
{
if (File.Exists(Path.Join(AppContext.BaseDirectory, Path.GetFileName(file))))
continue;
try
{
var name = AssemblyName.GetAssemblyName(file);
AddOverride(name, file);
}
catch (InvalidOperationException)
{
// fucking microsoft broke the standard in net9
}
catch (BadImageFormatException)
{
// if we are trying to load native image

View File

@@ -1,7 +1,6 @@
using System.Diagnostics;
using System.Reflection;
using System.Runtime.Loader;
using System.Web;
using CringeBootstrap;
using CringeBootstrap.Abstractions;
using Velopack;

File diff suppressed because it is too large Load Diff