The Free Software Media System - Server Backend & API
Target net6.0
Bond_00913fbfe6091e6
diff --git a/DvdLib/DvdLib.csproj b/DvdLib/DvdLib.csprojindex b8301e2f27..755d29160c 100644--- a/DvdLib/DvdLib.csproj+++ b/DvdLib/DvdLib.csproj@@ -10,7 +10,7 @@</ItemGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile><AnalysisMode>AllDisabledByDefault</AnalysisMode>diff --git a/DvdLib/Ifo/Dvd.cs b/DvdLib/Ifo/Dvd.csindex b4a11ed5d6..7f8ece47dc 100644--- a/DvdLib/Ifo/Dvd.cs+++ b/DvdLib/Ifo/Dvd.cs@@ -2,6 +2,7 @@using System;using System.Collections.Generic;+using System.Globalization;using System.IO;using System.Linq;@@ -76,7 +77,7 @@ namespace DvdLib.Ifoprivate void ReadVTS(ushort vtsNum, IReadOnlyList<FileInfo> allFiles){- var filename = string.Format("VTS_{0:00}_0.IFO", vtsNum);+ var filename = string.Format(CultureInfo.InvariantCulture, "VTS_{0:00}_0.IFO", vtsNum);var vtsPath = allFiles.FirstOrDefault(i => string.Equals(i.Name, filename, StringComparison.OrdinalIgnoreCase)) ??allFiles.FirstOrDefault(i => string.Equals(i.Name, Path.ChangeExtension(filename, ".bup"), StringComparison.OrdinalIgnoreCase));diff --git a/Emby.Dlna/DlnaManager.cs b/Emby.Dlna/DlnaManager.csindex 68fc80c0a0..3855504324 100644--- a/Emby.Dlna/DlnaManager.cs+++ b/Emby.Dlna/DlnaManager.cs@@ -486,7 +486,7 @@ namespace Emby.Dlna}/// <inheritdoc />- public ImageStream GetIcon(string filename)+ public ImageStream? GetIcon(string filename){var format = filename.EndsWith(".png", StringComparison.OrdinalIgnoreCase)? ImageFormat.Pngdiff --git a/Emby.Dlna/Emby.Dlna.csproj b/Emby.Dlna/Emby.Dlna.csprojindex 970c16d2e6..1d4e3b047d 100644--- a/Emby.Dlna/Emby.Dlna.csproj+++ b/Emby.Dlna/Emby.Dlna.csproj@@ -17,7 +17,7 @@</ItemGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile><AnalysisMode>AllDisabledByDefault</AnalysisMode>diff --git a/Emby.Dlna/Server/DescriptionXmlBuilder.cs b/Emby.Dlna/Server/DescriptionXmlBuilder.csindex 3f3dfccd3a..09525aae4e 100644--- a/Emby.Dlna/Server/DescriptionXmlBuilder.cs+++ b/Emby.Dlna/Server/DescriptionXmlBuilder.cs@@ -250,8 +250,7 @@ namespace Emby.Dlna.Serverurl = _serverAddress.TrimEnd('/') + "/dlna/" + _serverUdn + "/" + url.TrimStart('/');- // TODO: @bond remove null-coalescing operator when https://github.com/dotnet/runtime/pull/52442 is merged/released- return SecurityElement.Escape(url) ?? string.Empty;+ return SecurityElement.Escape(url);}private IEnumerable<DeviceIcon> GetIcons()diff --git a/Emby.Dlna/Service/BaseService.cs b/Emby.Dlna/Service/BaseService.csindex a97c4d63a6..68fd987585 100644--- a/Emby.Dlna/Service/BaseService.cs+++ b/Emby.Dlna/Service/BaseService.cs@@ -23,14 +23,14 @@ namespace Emby.Dlna.Servicereturn EventManager.CancelEventSubscription(subscriptionId);}- public EventSubscriptionResponse RenewEventSubscription(string subscriptionId, string notificationType, string timeoutString, string callbackUrl)+ public EventSubscriptionResponse RenewEventSubscription(string subscriptionId, string notificationType, string requestedTimeoutString, string callbackUrl){- return EventManager.RenewEventSubscription(subscriptionId, notificationType, timeoutString, callbackUrl);+ return EventManager.RenewEventSubscription(subscriptionId, notificationType, requestedTimeoutString, callbackUrl);}- public EventSubscriptionResponse CreateEventSubscription(string notificationType, string timeoutString, string callbackUrl)+ public EventSubscriptionResponse CreateEventSubscription(string notificationType, string requestedTimeoutString, string callbackUrl){- return EventManager.CreateEventSubscription(notificationType, timeoutString, callbackUrl);+ return EventManager.CreateEventSubscription(notificationType, requestedTimeoutString, callbackUrl);}}}diff --git a/Emby.Drawing/Emby.Drawing.csproj b/Emby.Drawing/Emby.Drawing.csprojindex baf350c6f1..300eea9680 100644--- a/Emby.Drawing/Emby.Drawing.csproj+++ b/Emby.Drawing/Emby.Drawing.csproj@@ -6,7 +6,7 @@</PropertyGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile><AnalysisMode>AllDisabledByDefault</AnalysisMode>diff --git a/Emby.Naming/Emby.Naming.csproj b/Emby.Naming/Emby.Naming.csprojindex 07d879e96a..96f8f389b3 100644--- a/Emby.Naming/Emby.Naming.csproj+++ b/Emby.Naming/Emby.Naming.csproj@@ -6,7 +6,7 @@</PropertyGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile><PublishRepositoryUrl>true</PublishRepositoryUrl>diff --git a/Emby.Notifications/Emby.Notifications.csproj b/Emby.Notifications/Emby.Notifications.csprojindex 5edcf2f295..d200682e65 100644--- a/Emby.Notifications/Emby.Notifications.csproj+++ b/Emby.Notifications/Emby.Notifications.csproj@@ -6,7 +6,7 @@</PropertyGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile></PropertyGroup>diff --git a/Emby.Photos/Emby.Photos.csproj b/Emby.Photos/Emby.Photos.csprojindex 00b2f0f94c..bf6252c195 100644--- a/Emby.Photos/Emby.Photos.csproj+++ b/Emby.Photos/Emby.Photos.csproj@@ -19,7 +19,7 @@</ItemGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile></PropertyGroup>diff --git a/Emby.Server.Implementations/Emby.Server.Implementations.csproj b/Emby.Server.Implementations/Emby.Server.Implementations.csprojindex 769972d8c4..0e1386ef55 100644--- a/Emby.Server.Implementations/Emby.Server.Implementations.csproj+++ b/Emby.Server.Implementations/Emby.Server.Implementations.csproj@@ -42,7 +42,7 @@</ItemGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile><!-- https://github.com/microsoft/ApplicationInsights-dotnet/issues/2047 -->diff --git a/Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunUdpStream.cs b/Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunUdpStream.csindex a8f761fdeb..6a2e7f6998 100644--- a/Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunUdpStream.cs+++ b/Emby.Server.Implementations/LiveTv/TunerHosts/HdHomerun/HdHomerunUdpStream.cs@@ -196,7 +196,7 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts.HdHomeruncancellationToken,timeOutSource.Token)){- var resTask = udpClient.ReceiveAsync();+ var resTask = udpClient.ReceiveAsync(linkedSource.Token).AsTask();if (await Task.WhenAny(resTask, Task.Delay(30000, linkedSource.Token)).ConfigureAwait(false) != resTask){resTask.Dispose();diff --git a/Jellyfin.Api/Auth/FirstTimeSetupOrDefaultPolicy/FirstTimeSetupOrDefaultHandler.cs b/Jellyfin.Api/Auth/FirstTimeSetupOrDefaultPolicy/FirstTimeSetupOrDefaultHandler.csindex 9815e252ee..dd0bd4ec2f 100644--- a/Jellyfin.Api/Auth/FirstTimeSetupOrDefaultPolicy/FirstTimeSetupOrDefaultHandler.cs+++ b/Jellyfin.Api/Auth/FirstTimeSetupOrDefaultPolicy/FirstTimeSetupOrDefaultHandler.cs@@ -32,18 +32,18 @@ namespace Jellyfin.Api.Auth.FirstTimeSetupOrDefaultPolicy}/// <inheritdoc />- protected override Task HandleRequirementAsync(AuthorizationHandlerContext context, FirstTimeSetupOrDefaultRequirement firstTimeSetupOrDefaultRequirement)+ protected override Task HandleRequirementAsync(AuthorizationHandlerContext context, FirstTimeSetupOrDefaultRequirement requirement){if (!_configurationManager.CommonConfiguration.IsStartupWizardCompleted){- context.Succeed(firstTimeSetupOrDefaultRequirement);+ context.Succeed(requirement);return Task.CompletedTask;}var validated = ValidateClaims(context.User);if (validated){- context.Succeed(firstTimeSetupOrDefaultRequirement);+ context.Succeed(requirement);}else{diff --git a/Jellyfin.Api/Auth/FirstTimeSetupOrElevatedPolicy/FirstTimeSetupOrElevatedHandler.cs b/Jellyfin.Api/Auth/FirstTimeSetupOrElevatedPolicy/FirstTimeSetupOrElevatedHandler.csindex decbe0c035..90b76ee99a 100644--- a/Jellyfin.Api/Auth/FirstTimeSetupOrElevatedPolicy/FirstTimeSetupOrElevatedHandler.cs+++ b/Jellyfin.Api/Auth/FirstTimeSetupOrElevatedPolicy/FirstTimeSetupOrElevatedHandler.cs@@ -33,18 +33,18 @@ namespace Jellyfin.Api.Auth.FirstTimeSetupOrElevatedPolicy}/// <inheritdoc />- protected override Task HandleRequirementAsync(AuthorizationHandlerContext context, FirstTimeSetupOrElevatedRequirement firstTimeSetupOrElevatedRequirement)+ protected override Task HandleRequirementAsync(AuthorizationHandlerContext context, FirstTimeSetupOrElevatedRequirement requirement){if (!_configurationManager.CommonConfiguration.IsStartupWizardCompleted){- context.Succeed(firstTimeSetupOrElevatedRequirement);+ context.Succeed(requirement);return Task.CompletedTask;}var validated = ValidateClaims(context.User);if (validated && context.User.IsInRole(UserRoles.Administrator)){- context.Succeed(firstTimeSetupOrElevatedRequirement);+ context.Succeed(requirement);}else{diff --git a/Jellyfin.Api/Controllers/ImageController.cs b/Jellyfin.Api/Controllers/ImageController.csindex 9dc280e138..b1c860d61f 100644--- a/Jellyfin.Api/Controllers/ImageController.cs+++ b/Jellyfin.Api/Controllers/ImageController.cs@@ -106,7 +106,7 @@ namespace Jellyfin.Api.Controllersawait using var memoryStream = await GetMemoryStream(Request.Body).ConfigureAwait(false);// Handle image/png; charset=utf-8- var mimeType = Request.ContentType.Split(';').FirstOrDefault();+ var mimeType = Request.ContentType?.Split(';').FirstOrDefault();var userDataPath = Path.Combine(_serverConfigurationManager.ApplicationPaths.UserConfigurationDirectoryPath, user.Username);if (user.ProfileImage != null){@@ -153,7 +153,7 @@ namespace Jellyfin.Api.Controllersawait using var memoryStream = await GetMemoryStream(Request.Body).ConfigureAwait(false);// Handle image/png; charset=utf-8- var mimeType = Request.ContentType.Split(';').FirstOrDefault();+ var mimeType = Request.ContentType?.Split(';').FirstOrDefault();var userDataPath = Path.Combine(_serverConfigurationManager.ApplicationPaths.UserConfigurationDirectoryPath, user.Username);if (user.ProfileImage != null){@@ -341,7 +341,7 @@ namespace Jellyfin.Api.Controllersawait using var memoryStream = await GetMemoryStream(Request.Body).ConfigureAwait(false);// Handle image/png; charset=utf-8- var mimeType = Request.ContentType.Split(';').FirstOrDefault();+ var mimeType = Request.ContentType?.Split(';').FirstOrDefault();await _providerManager.SaveImage(item, memoryStream, mimeType, imageType, null, CancellationToken.None).ConfigureAwait(false);await item.UpdateToRepositoryAsync(ItemUpdateType.ImageUpdate, CancellationToken.None).ConfigureAwait(false);@@ -377,7 +377,7 @@ namespace Jellyfin.Api.Controllersawait using var memoryStream = await GetMemoryStream(Request.Body).ConfigureAwait(false);// Handle image/png; charset=utf-8- var mimeType = Request.ContentType.Split(';').FirstOrDefault();+ var mimeType = Request.ContentType?.Split(';').FirstOrDefault();await _providerManager.SaveImage(item, memoryStream, mimeType, imageType, null, CancellationToken.None).ConfigureAwait(false);await item.UpdateToRepositoryAsync(ItemUpdateType.ImageUpdate, CancellationToken.None).ConfigureAwait(false);@@ -2026,7 +2026,7 @@ namespace Jellyfin.Api.Controllersreturn NoContent();}- return PhysicalFile(imagePath, imageContentType);+ return PhysicalFile(imagePath, imageContentType ?? MediaTypeNames.Text.Plain);}}}diff --git a/Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs b/Jellyfin.Api/Helpers/FileStreamResponseHelpers.csindex b0fd59e5e3..6385b62c96 100644--- a/Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs+++ b/Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs@@ -1,6 +1,7 @@using System;using System.IO;using System.Net.Http;+using System.Net.Mime;using System.Threading;using System.Threading.Tasks;using Jellyfin.Api.Models.PlaybackDtos;@@ -40,7 +41,7 @@ namespace Jellyfin.Api.Helpers// Can't dispose the response as it's required up the call chain.var response = await httpClient.GetAsync(new Uri(state.MediaPath), cancellationToken).ConfigureAwait(false);- var contentType = response.Content.Headers.ContentType?.ToString();+ var contentType = response.Content.Headers.ContentType?.ToString() ?? MediaTypeNames.Text.Plain;httpContext.Response.Headers[HeaderNames.AcceptRanges] = "none";diff --git a/Jellyfin.Api/Jellyfin.Api.csproj b/Jellyfin.Api/Jellyfin.Api.csprojindex 7f4eb0378a..8cc4711a72 100644--- a/Jellyfin.Api/Jellyfin.Api.csproj+++ b/Jellyfin.Api/Jellyfin.Api.csproj@@ -6,7 +6,7 @@</PropertyGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateDocumentationFile>true</GenerateDocumentationFile><!-- https://github.com/microsoft/ApplicationInsights-dotnet/issues/2047 --><NoWarn>AD0001</NoWarn>diff --git a/Jellyfin.Api/ModelBinders/NullableEnumModelBinder.cs b/Jellyfin.Api/ModelBinders/NullableEnumModelBinder.csindex be2045fbab..d2e78ac884 100644--- a/Jellyfin.Api/ModelBinders/NullableEnumModelBinder.cs+++ b/Jellyfin.Api/ModelBinders/NullableEnumModelBinder.cs@@ -32,7 +32,8 @@ namespace Jellyfin.Api.ModelBinders{try{- var convertedValue = converter.ConvertFromString(valueProviderResult.FirstValue);+ // REVIEW: This shouldn't be null here+ var convertedValue = converter.ConvertFromString(valueProviderResult.FirstValue!);bindingContext.Result = ModelBindingResult.Success(convertedValue);}catch (FormatException e)@@ -44,4 +45,4 @@ namespace Jellyfin.Api.ModelBindersreturn Task.CompletedTask;}}-}\ No newline at end of file+}diff --git a/Jellyfin.Data/Jellyfin.Data.csproj b/Jellyfin.Data/Jellyfin.Data.csprojindex 65bbd49da2..19aef704c0 100644--- a/Jellyfin.Data/Jellyfin.Data.csproj+++ b/Jellyfin.Data/Jellyfin.Data.csproj@@ -1,7 +1,7 @@<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile><PublishRepositoryUrl>true</PublishRepositoryUrl>diff --git a/Jellyfin.Drawing.Skia/Jellyfin.Drawing.Skia.csproj b/Jellyfin.Drawing.Skia/Jellyfin.Drawing.Skia.csprojindex 8cee5dcaee..5fa386ecac 100644--- a/Jellyfin.Drawing.Skia/Jellyfin.Drawing.Skia.csproj+++ b/Jellyfin.Drawing.Skia/Jellyfin.Drawing.Skia.csproj@@ -6,7 +6,7 @@</PropertyGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile></PropertyGroup>@@ -28,11 +28,6 @@<ProjectReference Include="..\MediaBrowser.Common\MediaBrowser.Common.csproj" /></ItemGroup>- <ItemGroup>- <!-- Needed for https://github.com/dotnet/roslyn-analyzers/issues/4382 which is in the SDK yet -->- <PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="5.0.3" PrivateAssets="All" />- </ItemGroup>-<!-- Code analysers--><ItemGroup Condition=" '$(Configuration)' == 'Debug' "><PackageReference Include="SerilogAnalyzer" Version="0.15.0" PrivateAssets="All" />diff --git a/Jellyfin.Networking/Jellyfin.Networking.csproj b/Jellyfin.Networking/Jellyfin.Networking.csprojindex 227a41ce44..0cd9a59156 100644--- a/Jellyfin.Networking/Jellyfin.Networking.csproj+++ b/Jellyfin.Networking/Jellyfin.Networking.csproj@@ -1,6 +1,6 @@<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile></PropertyGroup>diff --git a/Jellyfin.Server.Implementations/Jellyfin.Server.Implementations.csproj b/Jellyfin.Server.Implementations/Jellyfin.Server.Implementations.csprojindex 434c414a4a..337f5cb82a 100644--- a/Jellyfin.Server.Implementations/Jellyfin.Server.Implementations.csproj+++ b/Jellyfin.Server.Implementations/Jellyfin.Server.Implementations.csproj@@ -1,7 +1,7 @@<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile></PropertyGroup>diff --git a/Jellyfin.Server/Configuration/CorsPolicyProvider.cs b/Jellyfin.Server/Configuration/CorsPolicyProvider.csindex 0d04b6bb13..b061be33b5 100644--- a/Jellyfin.Server/Configuration/CorsPolicyProvider.cs+++ b/Jellyfin.Server/Configuration/CorsPolicyProvider.cs@@ -23,7 +23,7 @@ namespace Jellyfin.Server.Configuration}/// <inheritdoc />- public Task<CorsPolicy> GetPolicyAsync(HttpContext context, string policyName)+ public Task<CorsPolicy?> GetPolicyAsync(HttpContext context, string? policyName){var corsHosts = _serverConfigurationManager.Configuration.CorsHosts;var builder = new CorsPolicyBuilder()@@ -43,7 +43,7 @@ namespace Jellyfin.Server.Configuration.AllowCredentials();}- return Task.FromResult(builder.Build());+ return Task.FromResult<CorsPolicy?>(builder.Build());}}}diff --git a/Jellyfin.Server/Infrastructure/SymlinkFollowingPhysicalFileResultExecutor.cs b/Jellyfin.Server/Infrastructure/SymlinkFollowingPhysicalFileResultExecutor.csindex e171fc145c..4abd5b36d1 100644--- a/Jellyfin.Server/Infrastructure/SymlinkFollowingPhysicalFileResultExecutor.cs+++ b/Jellyfin.Server/Infrastructure/SymlinkFollowingPhysicalFileResultExecutor.cs@@ -68,7 +68,7 @@ namespace Jellyfin.Server.Infrastructure}/// <inheritdoc />- protected override Task WriteFileAsync(ActionContext context, PhysicalFileResult result, RangeItemHeaderValue range, long rangeLength)+ protected override Task WriteFileAsync(ActionContext context, PhysicalFileResult result, RangeItemHeaderValue? range, long rangeLength){if (context == null){diff --git a/Jellyfin.Server/Jellyfin.Server.csproj b/Jellyfin.Server/Jellyfin.Server.csprojindex fc935cecb2..074d43fba8 100644--- a/Jellyfin.Server/Jellyfin.Server.csproj+++ b/Jellyfin.Server/Jellyfin.Server.csproj@@ -8,7 +8,7 @@<PropertyGroup><AssemblyName>jellyfin</AssemblyName><OutputType>Exe</OutputType>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><ServerGarbageCollection>false</ServerGarbageCollection><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile>diff --git a/Jellyfin.Server/Middleware/QueryStringDecodingMiddleware.cs b/Jellyfin.Server/Middleware/QueryStringDecodingMiddleware.csindex fd0ebbf438..cdd86e28e6 100644--- a/Jellyfin.Server/Middleware/QueryStringDecodingMiddleware.cs+++ b/Jellyfin.Server/Middleware/QueryStringDecodingMiddleware.cs@@ -27,7 +27,11 @@ namespace Jellyfin.Server.Middleware/// <returns>The async task.</returns>public async Task Invoke(HttpContext httpContext){- httpContext.Features.Set<IQueryFeature>(new UrlDecodeQueryFeature(httpContext.Features.Get<IQueryFeature>()));+ var feature = httpContext.Features.Get<IQueryFeature>();+ if (feature != null)+ {+ httpContext.Features.Set<IQueryFeature>(new UrlDecodeQueryFeature(feature));+ }await _next(httpContext).ConfigureAwait(false);}diff --git a/MediaBrowser.Common/MediaBrowser.Common.csproj b/MediaBrowser.Common/MediaBrowser.Common.csprojindex 12cfaf9789..6358c00001 100644--- a/MediaBrowser.Common/MediaBrowser.Common.csproj+++ b/MediaBrowser.Common/MediaBrowser.Common.csproj@@ -29,7 +29,7 @@</ItemGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile><PublishRepositoryUrl>true</PublishRepositoryUrl>diff --git a/MediaBrowser.Controller/Dlna/IDlnaManager.cs b/MediaBrowser.Controller/Dlna/IDlnaManager.csindex a64919700d..cc0a107a81 100644--- a/MediaBrowser.Controller/Dlna/IDlnaManager.cs+++ b/MediaBrowser.Controller/Dlna/IDlnaManager.cs@@ -74,6 +74,6 @@ namespace MediaBrowser.Controller.Dlna/// </summary>/// <param name="filename">The filename.</param>/// <returns>DlnaIconResponse.</returns>- ImageStream GetIcon(string filename);+ ImageStream? GetIcon(string filename);}}diff --git a/MediaBrowser.Controller/Drawing/IImageProcessor.cs b/MediaBrowser.Controller/Drawing/IImageProcessor.csindex c7f61a90bb..7ca0e851bd 100644--- a/MediaBrowser.Controller/Drawing/IImageProcessor.cs+++ b/MediaBrowser.Controller/Drawing/IImageProcessor.cs@@ -58,7 +58,7 @@ namespace MediaBrowser.Controller.Drawing/// <returns>Guid.</returns>string GetImageCacheTag(BaseItem item, ItemImageInfo image);- string GetImageCacheTag(BaseItem item, ChapterInfo info);+ string GetImageCacheTag(BaseItem item, ChapterInfo chapter);string? GetImageCacheTag(User user);diff --git a/MediaBrowser.Controller/MediaBrowser.Controller.csproj b/MediaBrowser.Controller/MediaBrowser.Controller.csprojindex 0f697bcccd..47cec7d77f 100644--- a/MediaBrowser.Controller/MediaBrowser.Controller.csproj+++ b/MediaBrowser.Controller/MediaBrowser.Controller.csproj@@ -32,7 +32,7 @@</ItemGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile><PublishRepositoryUrl>true</PublishRepositoryUrl>diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingJobInfo.cs b/MediaBrowser.Controller/MediaEncoding/EncodingJobInfo.csindex b09b7dba6c..e92c4a08a6 100644--- a/MediaBrowser.Controller/MediaEncoding/EncodingJobInfo.cs+++ b/MediaBrowser.Controller/MediaEncoding/EncodingJobInfo.cs@@ -541,7 +541,12 @@ namespace MediaBrowser.Controller.MediaEncodingreturn MimeType;}- return MimeTypes.GetMimeType(outputPath, enableStreamDefault);+ if (enableStreamDefault)+ {+ return MimeTypes.GetMimeType(outputPath);+ }++ return MimeTypes.GetMimeType(outputPath, null);}public bool DeInterlace(string videoCodec, bool forceDeinterlaceIfSourceIsInterlaced)diff --git a/MediaBrowser.LocalMetadata/MediaBrowser.LocalMetadata.csproj b/MediaBrowser.LocalMetadata/MediaBrowser.LocalMetadata.csprojindex 1cf8fcd1b5..a3db717b9f 100644--- a/MediaBrowser.LocalMetadata/MediaBrowser.LocalMetadata.csproj+++ b/MediaBrowser.LocalMetadata/MediaBrowser.LocalMetadata.csproj@@ -11,7 +11,7 @@</ItemGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile></PropertyGroup>diff --git a/MediaBrowser.MediaEncoding/MediaBrowser.MediaEncoding.csproj b/MediaBrowser.MediaEncoding/MediaBrowser.MediaEncoding.csprojindex 5deaecc952..30cfb904e1 100644--- a/MediaBrowser.MediaEncoding/MediaBrowser.MediaEncoding.csproj+++ b/MediaBrowser.MediaEncoding/MediaBrowser.MediaEncoding.csproj@@ -6,7 +6,7 @@</PropertyGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile></PropertyGroup>diff --git a/MediaBrowser.MediaEncoding/Subtitles/SubtitleEditParser.cs b/MediaBrowser.MediaEncoding/Subtitles/SubtitleEditParser.csindex 3d864e29ca..20e4be7802 100644--- a/MediaBrowser.MediaEncoding/Subtitles/SubtitleEditParser.cs+++ b/MediaBrowser.MediaEncoding/Subtitles/SubtitleEditParser.cs@@ -38,7 +38,7 @@ namespace MediaBrowser.MediaEncoding.SubtitlessubRip.LoadSubtitle(subtitle, lines, "untitled");if (subRip.ErrorCount > 0){- _logger.LogError("{ErrorCount} errors encountered while parsing subtitle.");+ _logger.LogError("{ErrorCount} errors encountered while parsing subtitle.", subRip.ErrorCount);}var trackInfo = new SubtitleTrackInfo();diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csprojindex a371afc2cf..b0a12a9c90 100644--- a/MediaBrowser.Model/MediaBrowser.Model.csproj+++ b/MediaBrowser.Model/MediaBrowser.Model.csproj@@ -14,7 +14,7 @@</PropertyGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile><PublishRepositoryUrl>true</PublishRepositoryUrl>diff --git a/MediaBrowser.Model/Net/MimeTypes.cs b/MediaBrowser.Model/Net/MimeTypes.csindex 7b3c17c85a..1d9150f02b 100644--- a/MediaBrowser.Model/Net/MimeTypes.cs+++ b/MediaBrowser.Model/Net/MimeTypes.cs@@ -2,6 +2,7 @@using System;using System.Collections.Generic;+using System.Diagnostics.CodeAnalysis;using System.IO;using System.Linq;using Jellyfin.Extensions;@@ -164,15 +165,16 @@ namespace MediaBrowser.Model.Netreturn dict;}- public static string? GetMimeType(string path) => GetMimeType(path, true);+ public static string GetMimeType(string path) => GetMimeType(path, "application/octet-stream");/// <summary>/// Gets the type of the MIME./// </summary>/// <param name="filename">The filename to find the MIME type of.</param>- /// <param name="enableStreamDefault">Whether of not to return a default value if no fitting MIME type is found.</param>- /// <returns>The worrect MIME type for the given filename, or `null` if it wasn't found and <paramref name="enableStreamDefault"/> is false.</returns>- public static string? GetMimeType(string filename, bool enableStreamDefault)+ /// <param name="defaultValue">Theefault value to return if no fitting MIME type is found.</param>+ /// <returns>The correct MIME type for the given filename, or <paramref name="defaultValue"/> if it wasn't found.</returns>+ [return: NotNullIfNotNullAttribute("defaultValue")]+ public static string? GetMimeType(string filename, string? defaultValue = null){if (filename.Length == 0){@@ -211,7 +213,7 @@ namespace MediaBrowser.Model.Netreturn "application/octet-stream";}- return enableStreamDefault ? "application/octet-stream" : null;+ return defaultValue;}public static string? ToExtension(string mimeType)diff --git a/MediaBrowser.Providers/MediaBrowser.Providers.csproj b/MediaBrowser.Providers/MediaBrowser.Providers.csprojindex 3a6e162746..29d6b01f23 100644--- a/MediaBrowser.Providers/MediaBrowser.Providers.csproj+++ b/MediaBrowser.Providers/MediaBrowser.Providers.csproj@@ -26,7 +26,7 @@</ItemGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile><CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet>diff --git a/MediaBrowser.Providers/Plugins/Omdb/JsonOmdbNotAvailableInt32Converter.cs b/MediaBrowser.Providers/Plugins/Omdb/JsonOmdbNotAvailableInt32Converter.csindex 268538815e..19d90b9a1b 100644--- a/MediaBrowser.Providers/Plugins/Omdb/JsonOmdbNotAvailableInt32Converter.cs+++ b/MediaBrowser.Providers/Plugins/Omdb/JsonOmdbNotAvailableInt32Converter.cs@@ -18,7 +18,7 @@ namespace MediaBrowser.Providers.Plugins.Omdbif (reader.TokenType == JsonTokenType.String){var str = reader.GetString();- if (str != null && str.Equals("N/A", StringComparison.OrdinalIgnoreCase))+ if (str == null || str.Equals("N/A", StringComparison.OrdinalIgnoreCase)){return null;}diff --git a/MediaBrowser.XbmcMetadata/MediaBrowser.XbmcMetadata.csproj b/MediaBrowser.XbmcMetadata/MediaBrowser.XbmcMetadata.csprojindex 3e2a9bacf1..926be5a927 100644--- a/MediaBrowser.XbmcMetadata/MediaBrowser.XbmcMetadata.csproj+++ b/MediaBrowser.XbmcMetadata/MediaBrowser.XbmcMetadata.csproj@@ -15,7 +15,7 @@</ItemGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile></PropertyGroup>diff --git a/RSSDP/DisposableManagedObjectBase.cs b/RSSDP/DisposableManagedObjectBase.csindex 7d6a471f95..5d7da4124e 100644--- a/RSSDP/DisposableManagedObjectBase.cs+++ b/RSSDP/DisposableManagedObjectBase.cs@@ -1,5 +1,6 @@using System;using System.Collections.Generic;+using System.Globalization;using System.Text;namespace Rssdp.Infrastructure@@ -45,11 +46,11 @@ namespace Rssdp.Infrastructureconst string ArgFormat = "{0}: {1}\r\n";- builder.AppendFormat("{0}\r\n", header);+ builder.AppendFormat(CultureInfo.InvariantCulture, "{0}\r\n", header);foreach (var pair in values){- builder.AppendFormat(ArgFormat, pair.Key, pair.Value);+ builder.AppendFormat(CultureInfo.InvariantCulture, ArgFormat, pair.Key, pair.Value);}builder.Append("\r\n");diff --git a/RSSDP/RSSDP.csproj b/RSSDP/RSSDP.csprojindex 54113d4644..77130983b5 100644--- a/RSSDP/RSSDP.csproj+++ b/RSSDP/RSSDP.csproj@@ -11,7 +11,7 @@</ItemGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><AnalysisMode>AllDisabledByDefault</AnalysisMode><Nullable>disable</Nullable>diff --git a/RSSDP/SsdpDevice.cs b/RSSDP/SsdpDevice.csindex 4005d836d9..c826830f1d 100644--- a/RSSDP/SsdpDevice.cs+++ b/RSSDP/SsdpDevice.cs@@ -1,6 +1,7 @@using System;using System.Collections.Generic;using System.Collections.ObjectModel;+using System.Globalization;using Rssdp.Infrastructure;namespace Rssdp@@ -134,11 +135,13 @@ namespace Rssdp{get{- return String.Format("urn:{0}:{3}:{1}:{2}",- this.DeviceTypeNamespace ?? String.Empty,- this.DeviceType ?? String.Empty,- this.DeviceVersion,- this.DeviceClass ?? "device");+ return String.Format(+ CultureInfo.InvariantCulture,+ "urn:{0}:{3}:{1}:{2}",+ this.DeviceTypeNamespace ?? String.Empty,+ this.DeviceType ?? String.Empty,+ this.DeviceVersion,+ this.DeviceClass ?? "device");}}diff --git a/RSSDP/SsdpDevicePublisher.cs b/RSSDP/SsdpDevicePublisher.csindex c9e795d565..64d19803df 100644--- a/RSSDP/SsdpDevicePublisher.cs+++ b/RSSDP/SsdpDevicePublisher.cs@@ -1,6 +1,7 @@using System;using System.Collections.Generic;using System.Collections.ObjectModel;+using System.Globalization;using System.Linq;using System.Net;using System.Threading;@@ -233,7 +234,7 @@ namespace Rssdp.Infrastructure{if (String.IsNullOrEmpty(searchTarget)){- WriteTrace(String.Format("Invalid search request received From {0}, Target is null/empty.", remoteEndPoint.ToString()));+ WriteTrace(String.Format(CultureInfo.InvariantCulture, "Invalid search request received From {0}, Target is null/empty.", remoteEndPoint.ToString()));return;}@@ -340,7 +341,7 @@ namespace Rssdp.Infrastructureprivate string GetUsn(string udn, string fullDeviceType){- return String.Format("{0}::{1}", udn, fullDeviceType);+ return String.Format(CultureInfo.InvariantCulture, "{0}::{1}", udn, fullDeviceType);}private async void SendSearchResponse(@@ -363,7 +364,7 @@ namespace Rssdp.Infrastructurevalues["DATE"] = DateTime.UtcNow.ToString("r");values["CACHE-CONTROL"] = "max-age = " + rootDevice.CacheLifetime.TotalSeconds;values["ST"] = searchTarget;- values["SERVER"] = string.Format("{0}/{1} UPnP/1.0 RSSDP/{2}", _OSName, _OSVersion, ServerVersion);+ values["SERVER"] = string.Format(CultureInfo.InvariantCulture, "{0}/{1} UPnP/1.0 RSSDP/{2}", _OSName, _OSVersion, ServerVersion);values["USN"] = uniqueServiceName;values["LOCATION"] = rootDevice.Location.ToString();@@ -497,7 +498,7 @@ namespace Rssdp.Infrastructurevalues["DATE"] = DateTime.UtcNow.ToString("r");values["CACHE-CONTROL"] = "max-age = " + rootDevice.CacheLifetime.TotalSeconds;values["LOCATION"] = rootDevice.Location.ToString();- values["SERVER"] = string.Format("{0}/{1} UPnP/1.0 RSSDP/{2}", _OSName, _OSVersion, ServerVersion);+ values["SERVER"] = string.Format(CultureInfo.InvariantCulture, "{0}/{1} UPnP/1.0 RSSDP/{2}", _OSName, _OSVersion, ServerVersion);values["NTS"] = "ssdp:alive";values["NT"] = notificationType;values["USN"] = uniqueServiceName;@@ -522,7 +523,7 @@ namespace Rssdp.Infrastructure}tasks.Add(SendByeByeNotification(device, device.Udn, device.Udn, cancellationToken));- tasks.Add(SendByeByeNotification(device, String.Format("urn:{0}", device.FullDeviceType), GetUsn(device.Udn, device.FullDeviceType), cancellationToken));+ tasks.Add(SendByeByeNotification(device, String.Format(CultureInfo.InvariantCulture, "urn:{0}", device.FullDeviceType), GetUsn(device.Udn, device.FullDeviceType), cancellationToken));foreach (var childDevice in device.Devices){@@ -542,7 +543,7 @@ namespace Rssdp.Infrastructure// If needed later for non-server devices, these headers will need to be dynamicvalues["HOST"] = "239.255.255.250:1900";values["DATE"] = DateTime.UtcNow.ToString("r");- values["SERVER"] = string.Format("{0}/{1} UPnP/1.0 RSSDP/{2}", _OSName, _OSVersion, ServerVersion);+ values["SERVER"] = string.Format(CultureInfo.InvariantCulture, "{0}/{1} UPnP/1.0 RSSDP/{2}", _OSName, _OSVersion, ServerVersion);values["NTS"] = "ssdp:byebye";values["NT"] = notificationType;values["USN"] = uniqueServiceName;@@ -550,7 +551,7 @@ namespace Rssdp.Infrastructurevar message = BuildMessage(header, values);var sendCount = IsDisposed ? 1 : 3;- WriteTrace(String.Format("Sent byebye notification"), device);+ WriteTrace(String.Format(CultureInfo.InvariantCulture, "Sent byebye notification"), device);return _CommsServer.SendMulticastMessage(message, sendCount, _sendOnlyMatchedHost ? device.ToRootDevice().Address : null, cancellationToken);}diff --git a/tests/Jellyfin.Api.Tests/Jellyfin.Api.Tests.csproj b/tests/Jellyfin.Api.Tests/Jellyfin.Api.Tests.csprojindex 9dac63e703..b52ea078af 100644--- a/tests/Jellyfin.Api.Tests/Jellyfin.Api.Tests.csproj+++ b/tests/Jellyfin.Api.Tests/Jellyfin.Api.Tests.csproj@@ -6,7 +6,7 @@</PropertyGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><IsPackable>false</IsPackable><CodeAnalysisRuleSet>../jellyfin-tests.ruleset</CodeAnalysisRuleSet></PropertyGroup>diff --git a/tests/Jellyfin.Common.Tests/Jellyfin.Common.Tests.csproj b/tests/Jellyfin.Common.Tests/Jellyfin.Common.Tests.csprojindex 1619fa89c8..1fe4e25656 100644--- a/tests/Jellyfin.Common.Tests/Jellyfin.Common.Tests.csproj+++ b/tests/Jellyfin.Common.Tests/Jellyfin.Common.Tests.csproj@@ -6,7 +6,7 @@</PropertyGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><IsPackable>false</IsPackable><CodeAnalysisRuleSet>../jellyfin-tests.ruleset</CodeAnalysisRuleSet></PropertyGroup>diff --git a/tests/Jellyfin.Controller.Tests/Jellyfin.Controller.Tests.csproj b/tests/Jellyfin.Controller.Tests/Jellyfin.Controller.Tests.csprojindex a5778b59c8..e9a9515710 100644--- a/tests/Jellyfin.Controller.Tests/Jellyfin.Controller.Tests.csproj+++ b/tests/Jellyfin.Controller.Tests/Jellyfin.Controller.Tests.csproj@@ -6,7 +6,7 @@</PropertyGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><IsPackable>false</IsPackable><CodeAnalysisRuleSet>../jellyfin-tests.ruleset</CodeAnalysisRuleSet></PropertyGroup>diff --git a/tests/Jellyfin.Dlna.Tests/Jellyfin.Dlna.Tests.csproj b/tests/Jellyfin.Dlna.Tests/Jellyfin.Dlna.Tests.csprojindex 5a48631c29..1fb95aab4d 100644--- a/tests/Jellyfin.Dlna.Tests/Jellyfin.Dlna.Tests.csproj+++ b/tests/Jellyfin.Dlna.Tests/Jellyfin.Dlna.Tests.csproj@@ -1,7 +1,7 @@<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><IsPackable>false</IsPackable><CodeAnalysisRuleSet>../jellyfin-tests.ruleset</CodeAnalysisRuleSet></PropertyGroup>diff --git a/tests/Jellyfin.Extensions.Tests/Jellyfin.Extensions.Tests.csproj b/tests/Jellyfin.Extensions.Tests/Jellyfin.Extensions.Tests.csprojindex 20680157f5..2dc4ac19a5 100644--- a/tests/Jellyfin.Extensions.Tests/Jellyfin.Extensions.Tests.csproj+++ b/tests/Jellyfin.Extensions.Tests/Jellyfin.Extensions.Tests.csproj@@ -1,7 +1,7 @@<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><IsPackable>false</IsPackable><CodeAnalysisRuleSet>../jellyfin-tests.ruleset</CodeAnalysisRuleSet></PropertyGroup>diff --git a/tests/Jellyfin.MediaEncoding.Tests/Jellyfin.MediaEncoding.Tests.csproj b/tests/Jellyfin.MediaEncoding.Tests/Jellyfin.MediaEncoding.Tests.csprojindex e9cd8c0623..201f63a2d6 100644--- a/tests/Jellyfin.MediaEncoding.Tests/Jellyfin.MediaEncoding.Tests.csproj+++ b/tests/Jellyfin.MediaEncoding.Tests/Jellyfin.MediaEncoding.Tests.csproj@@ -6,7 +6,7 @@</PropertyGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><IsPackable>false</IsPackable><CodeAnalysisRuleSet>../jellyfin-tests.ruleset</CodeAnalysisRuleSet></PropertyGroup>diff --git a/tests/Jellyfin.Model.Tests/Jellyfin.Model.Tests.csproj b/tests/Jellyfin.Model.Tests/Jellyfin.Model.Tests.csprojindex 09b8a7a948..a37e5ac920 100644--- a/tests/Jellyfin.Model.Tests/Jellyfin.Model.Tests.csproj+++ b/tests/Jellyfin.Model.Tests/Jellyfin.Model.Tests.csproj@@ -1,7 +1,7 @@<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><IsPackable>false</IsPackable><CodeAnalysisRuleSet>../jellyfin-tests.ruleset</CodeAnalysisRuleSet></PropertyGroup>diff --git a/tests/Jellyfin.Naming.Tests/Jellyfin.Naming.Tests.csproj b/tests/Jellyfin.Naming.Tests/Jellyfin.Naming.Tests.csprojindex a4ebab141e..75d466198a 100644--- a/tests/Jellyfin.Naming.Tests/Jellyfin.Naming.Tests.csproj+++ b/tests/Jellyfin.Naming.Tests/Jellyfin.Naming.Tests.csproj@@ -6,7 +6,7 @@</PropertyGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><IsPackable>false</IsPackable><CodeAnalysisRuleSet>../jellyfin-tests.ruleset</CodeAnalysisRuleSet></PropertyGroup>diff --git a/tests/Jellyfin.Networking.Tests/Jellyfin.Networking.Tests.csproj b/tests/Jellyfin.Networking.Tests/Jellyfin.Networking.Tests.csprojindex 5fa2ecfe9e..75d9b9ea90 100644--- a/tests/Jellyfin.Networking.Tests/Jellyfin.Networking.Tests.csproj+++ b/tests/Jellyfin.Networking.Tests/Jellyfin.Networking.Tests.csproj@@ -6,7 +6,7 @@</PropertyGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><IsPackable>false</IsPackable><CodeAnalysisRuleSet>../jellyfin-tests.ruleset</CodeAnalysisRuleSet></PropertyGroup>diff --git a/tests/Jellyfin.Server.Implementations.Tests/Jellyfin.Server.Implementations.Tests.csproj b/tests/Jellyfin.Server.Implementations.Tests/Jellyfin.Server.Implementations.Tests.csprojindex 9b6ab7bdf5..5ecd846047 100644--- a/tests/Jellyfin.Server.Implementations.Tests/Jellyfin.Server.Implementations.Tests.csproj+++ b/tests/Jellyfin.Server.Implementations.Tests/Jellyfin.Server.Implementations.Tests.csproj@@ -6,7 +6,7 @@</PropertyGroup><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><IsPackable>false</IsPackable><CodeAnalysisRuleSet>../jellyfin-tests.ruleset</CodeAnalysisRuleSet><RootNamespace>Jellyfin.Server.Implementations.Tests</RootNamespace>diff --git a/tests/Jellyfin.Server.Integration.Tests/Jellyfin.Server.Integration.Tests.csproj b/tests/Jellyfin.Server.Integration.Tests/Jellyfin.Server.Integration.Tests.csprojindex 42e60df5fb..7939c7118e 100644--- a/tests/Jellyfin.Server.Integration.Tests/Jellyfin.Server.Integration.Tests.csproj+++ b/tests/Jellyfin.Server.Integration.Tests/Jellyfin.Server.Integration.Tests.csproj@@ -1,6 +1,6 @@<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><IsPackable>false</IsPackable><CodeAnalysisRuleSet>../jellyfin-tests.ruleset</CodeAnalysisRuleSet></PropertyGroup>diff --git a/tests/Jellyfin.Server.Tests/Jellyfin.Server.Tests.csproj b/tests/Jellyfin.Server.Tests/Jellyfin.Server.Tests.csprojindex 4f0bbc36cf..b30e690a5e 100644--- a/tests/Jellyfin.Server.Tests/Jellyfin.Server.Tests.csproj+++ b/tests/Jellyfin.Server.Tests/Jellyfin.Server.Tests.csproj@@ -1,7 +1,7 @@<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><IsPackable>false</IsPackable><CodeAnalysisRuleSet>../jellyfin-tests.ruleset</CodeAnalysisRuleSet></PropertyGroup>diff --git a/tests/Jellyfin.XbmcMetadata.Tests/Jellyfin.XbmcMetadata.Tests.csproj b/tests/Jellyfin.XbmcMetadata.Tests/Jellyfin.XbmcMetadata.Tests.csprojindex e085907583..94294c8bf3 100644--- a/tests/Jellyfin.XbmcMetadata.Tests/Jellyfin.XbmcMetadata.Tests.csproj+++ b/tests/Jellyfin.XbmcMetadata.Tests/Jellyfin.XbmcMetadata.Tests.csproj@@ -1,7 +1,7 @@<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup>- <TargetFramework>net5.0</TargetFramework>+ <TargetFramework>net6.0</TargetFramework><IsPackable>false</IsPackable><CodeAnalysisRuleSet>../jellyfin-tests.ruleset</CodeAnalysisRuleSet></PropertyGroup>