The Free Software Media System - Server Backend & API
Move to netcore3.0
Bond_009516933aab58e
diff --git a/Emby.Naming/Emby.Naming.csproj b/Emby.Naming/Emby.Naming.csprojindex 0b1ce2fce6..fca0aa1b38 100644--- a/Emby.Naming/Emby.Naming.csproj+++ b/Emby.Naming/Emby.Naming.csproj@@ -1,7 +1,7 @@<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup>- <TargetFramework>netstandard2.0</TargetFramework>+ <TargetFramework>netstandard2.1</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo></PropertyGroup>diff --git a/Emby.Naming/Extensions/StringExtensions.cs b/Emby.Naming/Extensions/StringExtensions.csdeleted file mode 100644index 5512127a80..0000000000--- a/Emby.Naming/Extensions/StringExtensions.cs+++ /dev/null@@ -1,31 +0,0 @@-using System;-using System.Text;--namespace Emby.Naming.Extensions-{- public static class StringExtensions- {- // TODO: @bond remove this when moving to netstandard2.1- public static string Replace(this string str, string oldValue, string newValue, StringComparison comparison)- {- var sb = new StringBuilder();-- var previousIndex = 0;- var index = str.IndexOf(oldValue, comparison);-- while (index != -1)- {- sb.Append(str.Substring(previousIndex, index - previousIndex));- sb.Append(newValue);- index += oldValue.Length;-- previousIndex = index;- index = str.IndexOf(oldValue, index, comparison);- }-- sb.Append(str.Substring(previousIndex));-- return sb.ToString();- }- }-}diff --git a/Emby.Naming/TV/SeasonPathParser.cs b/Emby.Naming/TV/SeasonPathParser.csindex e81b2bb349..9096ccaf5d 100644--- a/Emby.Naming/TV/SeasonPathParser.cs+++ b/Emby.Naming/TV/SeasonPathParser.cs@@ -2,8 +2,6 @@ using System;using System.Globalization;using System.IO;using System.Linq;-using Emby.Naming.Common;-using Emby.Naming.Extensions;namespace Emby.Naming.TV{diff --git a/Emby.Server.Implementations/Data/SqliteExtensions.cs b/Emby.Server.Implementations/Data/SqliteExtensions.csindex 0fb2c10fd3..e7c394b548 100644--- a/Emby.Server.Implementations/Data/SqliteExtensions.cs+++ b/Emby.Server.Implementations/Data/SqliteExtensions.cs@@ -34,8 +34,7 @@ namespace Emby.Server.Implementations.Datapublic static Guid ReadGuidFromBlob(this IResultSetValue result){- // TODO: Remove ToArray when upgrading to netstandard2.1- return new Guid(result.ToBlob().ToArray());+ return new Guid(result.ToBlob());}public static string ToDateTimeParamValue(this DateTime dateValue)diff --git a/Emby.Server.Implementations/Emby.Server.Implementations.csproj b/Emby.Server.Implementations/Emby.Server.Implementations.csprojindex 2c71f04578..ea44442687 100644--- a/Emby.Server.Implementations/Emby.Server.Implementations.csproj+++ b/Emby.Server.Implementations/Emby.Server.Implementations.csproj@@ -42,7 +42,7 @@</ItemGroup><PropertyGroup>- <TargetFramework>netstandard2.0</TargetFramework>+ <TargetFramework>netstandard2.1</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile></PropertyGroup>diff --git a/Jellyfin.Server/Jellyfin.Server.csproj b/Jellyfin.Server/Jellyfin.Server.csprojindex fa3e9cb35d..efdb75f980 100644--- a/Jellyfin.Server/Jellyfin.Server.csproj+++ b/Jellyfin.Server/Jellyfin.Server.csproj@@ -3,7 +3,7 @@<PropertyGroup><AssemblyName>jellyfin</AssemblyName><OutputType>Exe</OutputType>- <TargetFramework>netcoreapp2.1</TargetFramework>+ <TargetFramework>netcoreapp3.0</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile></PropertyGroup>diff --git a/tests/Jellyfin.Common.Tests/Jellyfin.Common.Tests.csproj b/tests/Jellyfin.Common.Tests/Jellyfin.Common.Tests.csprojindex 9188b8a02d..bb40985a49 100644--- a/tests/Jellyfin.Common.Tests/Jellyfin.Common.Tests.csproj+++ b/tests/Jellyfin.Common.Tests/Jellyfin.Common.Tests.csproj@@ -1,12 +1,12 @@<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup>- <TargetFramework>netcoreapp2.2</TargetFramework>+ <TargetFramework>netcoreapp3.0</TargetFramework><IsPackable>false</IsPackable></PropertyGroup><ItemGroup>- <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />+ <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" /><PackageReference Include="xunit" Version="2.4.1" /><PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" /><PackageReference Include="coverlet.collector" Version="1.1.0" />diff --git a/tests/Jellyfin.MediaEncoding.Tests/Jellyfin.MediaEncoding.Tests.csproj b/tests/Jellyfin.MediaEncoding.Tests/Jellyfin.MediaEncoding.Tests.csprojindex 9213484fef..70e2d18516 100644--- a/tests/Jellyfin.MediaEncoding.Tests/Jellyfin.MediaEncoding.Tests.csproj+++ b/tests/Jellyfin.MediaEncoding.Tests/Jellyfin.MediaEncoding.Tests.csproj@@ -1,12 +1,12 @@<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup>- <TargetFramework>netcoreapp2.2</TargetFramework>+ <TargetFramework>netcoreapp3.0</TargetFramework><IsPackable>false</IsPackable></PropertyGroup><ItemGroup>- <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />+ <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" /><PackageReference Include="xunit" Version="2.4.1" /><PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" /><PackageReference Include="coverlet.collector" Version="1.1.0" />