mirror of
https://github.com/Jackett/Jackett.git
synced 2025-10-02 16:42:01 +02:00
core: update net462 (#13873)
This commit is contained in:
@@ -95,7 +95,7 @@ stages:
|
|||||||
Mono:
|
Mono:
|
||||||
buildDescription: Mono
|
buildDescription: Mono
|
||||||
imageName: ubuntu-22.04
|
imageName: ubuntu-22.04
|
||||||
framework: net461
|
framework: net462
|
||||||
runtime: linux-x64
|
runtime: linux-x64
|
||||||
archiveType: tar
|
archiveType: tar
|
||||||
artifactName: Jackett.Binaries.Mono.tar.gz
|
artifactName: Jackett.Binaries.Mono.tar.gz
|
||||||
@@ -419,7 +419,7 @@ stages:
|
|||||||
Mono:
|
Mono:
|
||||||
buildDescription: Mono
|
buildDescription: Mono
|
||||||
imageName: ubuntu-22.04
|
imageName: ubuntu-22.04
|
||||||
framework: net461
|
framework: net462
|
||||||
runtime: linux-x64
|
runtime: linux-x64
|
||||||
pool:
|
pool:
|
||||||
vmImage: $(imageName)
|
vmImage: $(imageName)
|
||||||
@@ -518,7 +518,7 @@ stages:
|
|||||||
buildDescription: Mono
|
buildDescription: Mono
|
||||||
imageName: ubuntu-22.04
|
imageName: ubuntu-22.04
|
||||||
artifactName: Jackett.Binaries.Mono.tar.gz
|
artifactName: Jackett.Binaries.Mono.tar.gz
|
||||||
framework: net461
|
framework: net462
|
||||||
runtime: linux-x64
|
runtime: linux-x64
|
||||||
pool:
|
pool:
|
||||||
vmImage: $(imageName)
|
vmImage: $(imageName)
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net6.0;net461</TargetFrameworks>
|
<TargetFrameworks>net6.0;net462</TargetFrameworks>
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
<NoWarn />
|
<NoWarn />
|
||||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||||
|
@@ -3,7 +3,7 @@ using Jackett.Common.Models.Config;
|
|||||||
using Jackett.Common.Services.Interfaces;
|
using Jackett.Common.Services.Interfaces;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using NLog;
|
using NLog;
|
||||||
#if !NET461
|
#if !NET462
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@ namespace Jackett.Server
|
|||||||
{
|
{
|
||||||
public static IContainer ApplicationContainer { get; set; }
|
public static IContainer ApplicationContainer { get; set; }
|
||||||
|
|
||||||
#if NET461
|
#if NET462
|
||||||
public static IApplicationLifetime applicationLifetime;
|
public static IApplicationLifetime applicationLifetime;
|
||||||
#else
|
#else
|
||||||
public static IHostApplicationLifetime applicationLifetime;
|
public static IHostApplicationLifetime applicationLifetime;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net6.0;net461</TargetFrameworks>
|
<TargetFrameworks>net6.0;net462</TargetFrameworks>
|
||||||
<ApplicationIcon>jackett.ico</ApplicationIcon>
|
<ApplicationIcon>jackett.ico</ApplicationIcon>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<NoWarn></NoWarn>
|
<NoWarn></NoWarn>
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<Choose>
|
<Choose>
|
||||||
<When Condition="'$(TargetFramework)' != 'net461' and $(RuntimeIdentifier.Contains('win')) == 'false'">
|
<When Condition="'$(TargetFramework)' != 'net462' and $(RuntimeIdentifier.Contains('win')) == 'false'">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<AssemblyName>jackett</AssemblyName>
|
<AssemblyName>jackett</AssemblyName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -39,8 +39,8 @@
|
|||||||
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="6.0.0" />
|
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="6.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!-- Conditionally obtain references for the .NET461 target -->
|
<!-- Conditionally obtain references for the .NET462 target -->
|
||||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
|
<ItemGroup Condition=" '$(TargetFramework)' == 'net462' ">
|
||||||
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
|
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.2.0" />
|
<PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.2.0" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="2.2.0" />
|
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="2.2.0" />
|
||||||
|
@@ -22,7 +22,7 @@ using Microsoft.AspNetCore.Rewrite;
|
|||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Newtonsoft.Json.Serialization;
|
using Newtonsoft.Json.Serialization;
|
||||||
#if !NET461
|
#if !NET462
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ namespace Jackett.Server
|
|||||||
options.Cookie.Name = "Jackett";
|
options.Cookie.Name = "Jackett";
|
||||||
});
|
});
|
||||||
|
|
||||||
#if NET461
|
#if NET462
|
||||||
services.AddMvc(
|
services.AddMvc(
|
||||||
config => config.Filters.Add(
|
config => config.Filters.Add(
|
||||||
new AuthorizeFilter(
|
new AuthorizeFilter(
|
||||||
@@ -108,7 +108,7 @@ namespace Jackett.Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||||
#if NET461
|
#if NET462
|
||||||
public void Configure(IApplicationBuilder app, IHostingEnvironment env, IApplicationLifetime applicationLifetime)
|
public void Configure(IApplicationBuilder app, IHostingEnvironment env, IApplicationLifetime applicationLifetime)
|
||||||
{
|
{
|
||||||
applicationLifetime.ApplicationStarted.Register(OnStarted);
|
applicationLifetime.ApplicationStarted.Register(OnStarted);
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net6.0;net461</TargetFrameworks>
|
<TargetFrameworks>net6.0;net462</TargetFrameworks>
|
||||||
<NoWarn />
|
<NoWarn />
|
||||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||||
<WarningsAsErrors />
|
<WarningsAsErrors />
|
||||||
@@ -45,8 +45,8 @@
|
|||||||
<ProjectReference Include="..\Jackett.Server\Jackett.Server.csproj" />
|
<ProjectReference Include="..\Jackett.Server\Jackett.Server.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!-- Conditionally obtain references for the .NET461 target -->
|
<!-- Conditionally obtain references for the .NET462 target -->
|
||||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
|
<ItemGroup Condition=" '$(TargetFramework)' == 'net462' ">
|
||||||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" />
|
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" />
|
||||||
<Reference Include="System.Web" />
|
<Reference Include="System.Web" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFrameworks>net6.0;net461</TargetFrameworks>
|
<TargetFrameworks>net6.0;net462</TargetFrameworks>
|
||||||
<ApplicationIcon>jackett.ico</ApplicationIcon>
|
<ApplicationIcon>jackett.ico</ApplicationIcon>
|
||||||
<AssemblyName>JackettUpdater</AssemblyName>
|
<AssemblyName>JackettUpdater</AssemblyName>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
@@ -13,8 +13,8 @@
|
|||||||
<DefineConstants Condition="'$(RuntimeIdentifier)' == 'linux-musl-x64' or '$(RuntimeIdentifier)' == 'linux-musl-arm' or '$(RuntimeIdentifier)' == 'linux-musl-arm64'">ISLINUXMUSL</DefineConstants>
|
<DefineConstants Condition="'$(RuntimeIdentifier)' == 'linux-musl-x64' or '$(RuntimeIdentifier)' == 'linux-musl-arm' or '$(RuntimeIdentifier)' == 'linux-musl-arm64'">ISLINUXMUSL</DefineConstants>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<!-- Conditionally obtain references for the .NET461 target -->
|
<!-- Conditionally obtain references for the .NET462 target -->
|
||||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
|
<ItemGroup Condition=" '$(TargetFramework)' == 'net462' ">
|
||||||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" />
|
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user