From 22284d510671d0182179a7e4fe7aad9f48a10f0e Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 10 Sep 2025 18:59:28 +0300 Subject: [PATCH] core: bump .NET framework to 4.7.1 (#16184) --- README.md | 2 +- azure-pipelines.yml | 9 ++++----- .../Jackett.IntegrationTests.csproj | 2 +- src/Jackett.Server/Helper.cs | 4 ++-- src/Jackett.Server/Jackett.Server.csproj | 8 ++++---- src/Jackett.Server/Startup.cs | 6 +++--- src/Jackett.Test/Jackett.Test.csproj | 6 +++--- src/Jackett.Updater/Jackett.Updater.csproj | 6 +++--- 8 files changed, 21 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 4470ecae4..e93b93436 100644 --- a/README.md +++ b/README.md @@ -763,7 +763,7 @@ If you want to run it with a user without a /home directory you need to add `Env ## Installation on Linux (ARMv6 or below) - 1. Install [Mono 5.8](http://www.mono-project.com/download/#download-lin) or better (using the latest stable release is recommended) + 1. Install [Mono 5.10](http://www.mono-project.com/download/#download-lin) or better (using the latest stable release is recommended) * Follow the instructions on the mono website and install the `mono-devel` and the `ca-certificates-mono` packages. * On Red Hat/CentOS/openSUSE/Fedora the `mono-locale-extras` package is also required. 2. Install libcurl: diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b8618a906..1cf67038c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -2,7 +2,7 @@ name: $(majorVersion).$(minorVersion).$(patchVersion) variables: majorVersion: 0 - minorVersion: 22 + minorVersion: 23 patchVersion: $[counter(variables['minorVersion'], 1)] # this will reset when we bump minor jackettVersion: $(majorVersion).$(minorVersion).$(patchVersion) buildConfiguration: Release @@ -108,7 +108,7 @@ stages: Mono: buildDescription: Mono imageName: ubuntu-22.04 - framework: net462 + framework: net471 runtime: linux-x64 archiveType: tar artifactName: Jackett.Binaries.Mono.tar.gz @@ -280,7 +280,6 @@ stages: $newVersion.Value = '4.0.0.0' $xml.Save($file) Remove-Item '$(Build.BinariesDirectory)/Jackett/System.Net.Http.dll' - Remove-Item '$(Build.BinariesDirectory)/Jackett/System.Runtime.InteropServices.RuntimeInformation.dll' - task: Bash@3 displayName: Set Folder and File Permissions (Mono, Linux and macOS) @@ -438,7 +437,7 @@ stages: Mono: buildDescription: Mono imageName: ubuntu-22.04 - framework: net462 + framework: net471 runtime: linux-x64 pool: vmImage: $(imageName) @@ -535,7 +534,7 @@ stages: buildDescription: Mono imageName: ubuntu-22.04 artifactName: Jackett.Binaries.Mono.tar.gz - framework: net462 + framework: net471 runtime: linux-x64 pool: vmImage: $(imageName) diff --git a/src/Jackett.IntegrationTests/Jackett.IntegrationTests.csproj b/src/Jackett.IntegrationTests/Jackett.IntegrationTests.csproj index c065ee110..5959718e5 100644 --- a/src/Jackett.IntegrationTests/Jackett.IntegrationTests.csproj +++ b/src/Jackett.IntegrationTests/Jackett.IntegrationTests.csproj @@ -1,7 +1,7 @@ - net8.0;net462 + net8.0;net471 false false diff --git a/src/Jackett.Server/Helper.cs b/src/Jackett.Server/Helper.cs index c59ae6fed..4922b4714 100644 --- a/src/Jackett.Server/Helper.cs +++ b/src/Jackett.Server/Helper.cs @@ -3,7 +3,7 @@ using Jackett.Common.Models.Config; using Jackett.Common.Services.Interfaces; using Microsoft.AspNetCore.Hosting; using NLog; -#if !NET462 +#if !NET471 using Microsoft.Extensions.Hosting; #endif @@ -13,7 +13,7 @@ namespace Jackett.Server { public static IContainer ApplicationContainer { get; set; } -#if NET462 +#if NET471 public static IApplicationLifetime applicationLifetime; #else public static IHostApplicationLifetime applicationLifetime; diff --git a/src/Jackett.Server/Jackett.Server.csproj b/src/Jackett.Server/Jackett.Server.csproj index 5145fcfe2..6198b265b 100644 --- a/src/Jackett.Server/Jackett.Server.csproj +++ b/src/Jackett.Server/Jackett.Server.csproj @@ -2,7 +2,7 @@ $(MSBuildProjectName) - net8.0;net462 + net8.0;net471 jackett.ico Exe @@ -21,7 +21,7 @@ - + jackett @@ -40,8 +40,8 @@ - - + + diff --git a/src/Jackett.Server/Startup.cs b/src/Jackett.Server/Startup.cs index f4f48d105..3af6d99e4 100644 --- a/src/Jackett.Server/Startup.cs +++ b/src/Jackett.Server/Startup.cs @@ -22,7 +22,7 @@ using Microsoft.AspNetCore.Rewrite; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Newtonsoft.Json.Serialization; -#if !NET462 +#if !NET471 using Microsoft.Extensions.Hosting; #endif @@ -66,7 +66,7 @@ namespace Jackett.Server options.KnownProxies.Clear(); }); -#if NET462 +#if NET471 services.AddMvc( config => config.Filters.Add( new AuthorizeFilter( @@ -118,7 +118,7 @@ namespace Jackett.Server } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. -#if NET462 +#if NET471 public void Configure(IApplicationBuilder app, IHostingEnvironment env, IApplicationLifetime applicationLifetime) { applicationLifetime.ApplicationStarted.Register(OnStarted); diff --git a/src/Jackett.Test/Jackett.Test.csproj b/src/Jackett.Test/Jackett.Test.csproj index 685a2f8d7..a0e04a8fa 100644 --- a/src/Jackett.Test/Jackett.Test.csproj +++ b/src/Jackett.Test/Jackett.Test.csproj @@ -1,7 +1,7 @@ - net8.0;net462 + net8.0;net471 false @@ -45,8 +45,8 @@ - - + + diff --git a/src/Jackett.Updater/Jackett.Updater.csproj b/src/Jackett.Updater/Jackett.Updater.csproj index 79a4474be..ffcc01452 100644 --- a/src/Jackett.Updater/Jackett.Updater.csproj +++ b/src/Jackett.Updater/Jackett.Updater.csproj @@ -1,7 +1,7 @@ - net8.0;net462 + net8.0;net471 jackett.ico JackettUpdater Exe @@ -13,8 +13,8 @@ ISLINUXMUSL - - + +