From 8f9a40a2603557872b28a26ee9013d15fd2be05a Mon Sep 17 00:00:00 2001
From: JoC0de <53140583+JoC0de@users.noreply.github.com>
Date: Sun, 22 Dec 2024 23:16:35 +0100
Subject: [PATCH 1/2] add net 9 target to NuGetForUnity.Cli + update used
System.Text.Json version to prevent security warning
---
src/NuGetForUnity.Cli/NuGetForUnity.Cli.csproj | 6 +++---
.../ImportAndUseNuGetPackages/Assets/packages.config | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/NuGetForUnity.Cli/NuGetForUnity.Cli.csproj b/src/NuGetForUnity.Cli/NuGetForUnity.Cli.csproj
index 93b72f42..1fd51c28 100644
--- a/src/NuGetForUnity.Cli/NuGetForUnity.Cli.csproj
+++ b/src/NuGetForUnity.Cli/NuGetForUnity.Cli.csproj
@@ -3,7 +3,7 @@
Exe
NuGetForUnity.Cli
NuGetForUnity.Cli
- net7.0;net8.0
+ net7.0;net8.0;net9.0
AnyCPU
true
nugetforunity
@@ -34,8 +34,8 @@ e.g. the import settings of the DLL's are changed to comply with Unity.
-
-
+
+
diff --git a/src/TestProjects/ImportAndUseNuGetPackages/Assets/packages.config b/src/TestProjects/ImportAndUseNuGetPackages/Assets/packages.config
index d2a4d0bd..2e1d1ace 100644
--- a/src/TestProjects/ImportAndUseNuGetPackages/Assets/packages.config
+++ b/src/TestProjects/ImportAndUseNuGetPackages/Assets/packages.config
@@ -6,6 +6,6 @@
-
+
From 1e95b6efd6784154f8a66f7767dfeb2fdef10a41 Mon Sep 17 00:00:00 2001
From: JoC0de <53140583+JoC0de@users.noreply.github.com>
Date: Sun, 22 Dec 2024 23:26:59 +0100
Subject: [PATCH 2/2] update github action to support net 9
---
.github/workflows/main.yml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 81c653f7..bccb79fa 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -172,7 +172,9 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
- dotnet-version: "8.0.x"
+ dotnet-version: |
+ "8.0.x"
+ "9.0.x"
- name: Build and pack .NET Core Global Tool
run: >-