From 191d3c773e491021e479c927964bdf028fff4813 Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Fri, 29 Sep 2023 12:05:27 +0200 Subject: [PATCH] Update the TargetFrameworks Targeting netstandard2.0 and net6.0 should be enough for the library as that should support all currently supported verions of .Net Framework (4.6.2+) and .NET (6.0+) while allowing it to compile on linux. (Technically .NET Framework 3.5 Service Pack 1 is still supported but we currently don't support that anyway) For the test projects I just went with the latest .NET version as .NET 5.0 isn't supported anymore. --- TMDbLib/TMDbLib.csproj | 11 +---------- TMDbLibTests/TMDbLibTests.csproj | 4 ++-- TMDbLibTests/UtilityTests/TaggedImageConverterTest.cs | 4 ++-- TestApplication/TestApplication.csproj | 2 +- 4 files changed, 6 insertions(+), 15 deletions(-) diff --git a/TMDbLib/TMDbLib.csproj b/TMDbLib/TMDbLib.csproj index 438292c5..86bb6f9e 100644 --- a/TMDbLib/TMDbLib.csproj +++ b/TMDbLib/TMDbLib.csproj @@ -2,7 +2,7 @@ LordMike;Naliath - net45;netstandard2.1;netstandard2.0;netstandard1.2 + netstandard2.0;net6.0 TMDbLib TMDbLib .NET Client library for The Movie Database (https://www.themoviedb.org/) @@ -25,13 +25,4 @@ - - - - - - - - - diff --git a/TMDbLibTests/TMDbLibTests.csproj b/TMDbLibTests/TMDbLibTests.csproj index f661369e..f99cc8b7 100644 --- a/TMDbLibTests/TMDbLibTests.csproj +++ b/TMDbLibTests/TMDbLibTests.csproj @@ -3,7 +3,7 @@ - net5.0 + net7.0 @@ -18,7 +18,7 @@ - + diff --git a/TMDbLibTests/UtilityTests/TaggedImageConverterTest.cs b/TMDbLibTests/UtilityTests/TaggedImageConverterTest.cs index 50516389..6a26b5e4 100644 --- a/TMDbLibTests/UtilityTests/TaggedImageConverterTest.cs +++ b/TMDbLibTests/UtilityTests/TaggedImageConverterTest.cs @@ -81,8 +81,8 @@ public async Task TestJsonTaggedImageConverter(int personId) else if (item.MediaType == MediaType.Season) Assert.IsType(item.Media); else - Assert.False(true, $"Unexpected type {item.GetType().Name}"); + Assert.Fail($"Unexpected type {item.GetType().Name}"); }); } } -} \ No newline at end of file +} diff --git a/TestApplication/TestApplication.csproj b/TestApplication/TestApplication.csproj index b71ef819..f0a6bbd9 100644 --- a/TestApplication/TestApplication.csproj +++ b/TestApplication/TestApplication.csproj @@ -3,7 +3,7 @@ - net5.0 + net7.0 Exe