From d16132f67f82555ef636c0dabab5aabf36f57556 Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 13 Dec 2022 18:17:28 -0600 Subject: [PATCH] NET 7.0 support (#581) * NET 7.0 support * Bump Pomelo MySql to support EF7 * Its net7.0 time * Trying to resolve dependencies by hand * Fix .NET 7 warnings * Bump InfluxDB version * Fix bad null handling --- .config/dotnet-tools.json | 4 ++-- .github/workflows/ci.yml | 4 ++-- .run/Lighthouse API.run.xml | 4 ++-- .run/Lighthouse Game API.run.xml | 4 ++-- .run/Lighthouse Website.run.xml | 4 ++-- .../ProjectLighthouse.Localization.csproj | 2 +- .../Controllers/UserEndpoints.cs | 2 +- .../ProjectLighthouse.Servers.API.csproj | 2 +- .../Middlewares/DigestMiddleware.cs | 4 ++-- .../ProjectLighthouse.Servers.GameServer.csproj | 2 +- .../Pages/PasswordResetPage.cshtml.cs | 4 ++-- .../Pages/RegisterForm.cshtml.cs | 4 ++-- .../ProjectLighthouse.Servers.Website.csproj | 4 ++-- .../ProjectLighthouse.Tests.GameApiTests.csproj | 6 +++--- .../ProjectLighthouse.Tests.WebsiteTests.csproj | 6 +++--- .../ProjectLighthouse.Tests.csproj | 6 +++--- ProjectLighthouse/Database.cs | 12 +++++++++--- ProjectLighthouse/Extensions/RequestExtensions.cs | 2 +- ProjectLighthouse/ProjectLighthouse.csproj | 10 +++++----- ProjectLighthouse/StartupTasks.cs | 2 -- global.json | 2 +- scripts-and-tools/start.sh | 2 +- 22 files changed, 48 insertions(+), 44 deletions(-) diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index fab01c71..cc787758 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,13 +3,13 @@ "isRoot": true, "tools": { "dotnet-ef": { - "version": "6.0.10", + "version": "7.0.0", "commands": [ "dotnet-ef" ] }, "dotnet-trace": { - "version": "6.0.328102", + "version": "6.0.351802", "commands": [ "dotnet-trace" ] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 41895b51..60d2cb8a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,10 +34,10 @@ jobs: if: ${{ matrix.os.database }} run: mysql -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} -h 127.0.0.1 -e "CREATE DATABASE ${{ env.DB_DATABASE }};"; - - name: Install .NET 6.0 + - name: Install .NET 7.0 uses: actions/setup-dotnet@v3 with: - dotnet-version: "6.0.x" + dotnet-version: "7.0.x" - name: Compile run: dotnet build -c Debug diff --git a/.run/Lighthouse API.run.xml b/.run/Lighthouse API.run.xml index 02490fb4..b39956b2 100644 --- a/.run/Lighthouse API.run.xml +++ b/.run/Lighthouse API.run.xml @@ -1,6 +1,6 @@ -