Skip to content

Commit

Permalink
knossosnet: upgrade to .NET 8
Browse files Browse the repository at this point in the history
  • Loading branch information
GGG-KILLER committed Dec 18, 2024
1 parent 598d014 commit 7b36d1a
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 19 deletions.
5 changes: 0 additions & 5 deletions pkgs/by-name/kn/knossosnet/deps.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions pkgs/by-name/kn/knossosnet/dotnet-8-upgrade.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
diff --git a/IonKiwi.lz4/IonKiwi.lz4.csproj b/IonKiwi.lz4/IonKiwi.lz4.csproj
index 312984f..804be5c 100644
--- a/IonKiwi.lz4/IonKiwi.lz4.csproj
+++ b/IonKiwi.lz4/IonKiwi.lz4.csproj
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
- <TargetFrameworks>net60</TargetFrameworks>
+ <TargetFramework>net8.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PackageId>IonKiwi.lz4.managed</PackageId>
<Version>1.0.7</Version>
diff --git a/Knossos.NET/Knossos.NET.csproj b/Knossos.NET/Knossos.NET.csproj
index 501faaa..4b563f1 100644
--- a/Knossos.NET/Knossos.NET.csproj
+++ b/Knossos.NET/Knossos.NET.csproj
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
- <TargetFramework>net6.0</TargetFramework>
+ <TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<!--Avalonia doesen't support TrimMode=link currently,but we are working on that https://github.com/AvaloniaUI/Avalonia/issues/6892 -->
<TrimMode>copyused</TrimMode>
diff --git a/VP.NET/VP.NET.csproj b/VP.NET/VP.NET.csproj
index 11fa155..2eef420 100644
--- a/VP.NET/VP.NET.csproj
+++ b/VP.NET/VP.NET.csproj
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
- <TargetFramework>net6.0</TargetFramework>
+ <TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
4 changes: 2 additions & 2 deletions pkgs/by-name/kn/knossosnet/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ buildDotnetModule rec {
hash = "sha256-vlSiM6kskV4wfBZF7Rv5ICyqKG0Zhz/iU8kflYOaf0U=";
};

patches = [ ./targetframework.patch ];
patches = [ ./dotnet-8-upgrade.patch ];

dotnet-sdk = dotnetCorePackages.sdk_6_0;
dotnet-sdk = dotnetCorePackages.sdk_8_0;
nugetDeps = ./deps.nix;
executables = [ "Knossos.NET" ];

Expand Down
12 changes: 0 additions & 12 deletions pkgs/by-name/kn/knossosnet/targetframework.patch

This file was deleted.

0 comments on commit 7b36d1a

Please sign in to comment.