From e27d2ec6604e1c2c784a95a46531b77be2c43eb1 Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Thu, 1 Mar 2018 15:35:55 +0000 Subject: [PATCH] Remove netcoreapp1.x testing --- SharpCompress.sln.DotSettings | 8 ++++++++ build.cake | 13 ++----------- tests/SharpCompress.Test/SharpCompress.Test.csproj | 8 +------- tests/SharpCompress.Test/TestBase.cs | 6 +----- 4 files changed, 12 insertions(+), 23 deletions(-) diff --git a/SharpCompress.sln.DotSettings b/SharpCompress.sln.DotSettings index a3a163da..5b016930 100644 --- a/SharpCompress.sln.DotSettings +++ b/SharpCompress.sln.DotSettings @@ -45,10 +45,14 @@ True 1 1 + NEVER + NEVER False False + NEVER True False + NEVER True True @@ -115,6 +119,10 @@ <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> True + True + True + True True + True True True diff --git a/build.cake b/build.cake index c92639cc..3fc65799 100644 --- a/build.cake +++ b/build.cake @@ -25,7 +25,8 @@ Task("Build") var settings = new DotNetCoreBuildSettings { Framework = "netstandard1.0", - Configuration = "Release" + Configuration = "Release", + NoRestore = true }; DotNetCoreBuild("./src/SharpCompress/SharpCompress.csproj", settings); @@ -50,16 +51,6 @@ Task("Test") Configuration = "Release", Framework = "netcoreapp2.0" }; - - DotNetCoreTest(file.ToString(), settings); - - - settings = new DotNetCoreTestSettings - { - Configuration = "Release", - Framework = "netcoreapp1.1" - }; - DotNetCoreTest(file.ToString(), settings); } }); diff --git a/tests/SharpCompress.Test/SharpCompress.Test.csproj b/tests/SharpCompress.Test/SharpCompress.Test.csproj index 8dbcecb1..a79fe35d 100644 --- a/tests/SharpCompress.Test/SharpCompress.Test.csproj +++ b/tests/SharpCompress.Test/SharpCompress.Test.csproj @@ -1,6 +1,6 @@  - netcoreapp1.1;netcoreapp2.0 + netcoreapp2.0 SharpCompress.Test ../../SharpCompress.snk true @@ -16,10 +16,4 @@ - - - - - - \ No newline at end of file diff --git a/tests/SharpCompress.Test/TestBase.cs b/tests/SharpCompress.Test/TestBase.cs index 4547ad76..423535d2 100644 --- a/tests/SharpCompress.Test/TestBase.cs +++ b/tests/SharpCompress.Test/TestBase.cs @@ -241,13 +241,9 @@ namespace SharpCompress.Test { Monitor.Enter(lockObject); -#if NETSTANDARD20 var index = AppDomain.CurrentDomain.BaseDirectory.IndexOf("SharpCompress.Test", StringComparison.OrdinalIgnoreCase); SOLUTION_BASE_PATH = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory.Substring(0, index)); -#else - var index = Microsoft.Extensions.PlatformAbstractions.PlatformServices.Default.Application.ApplicationBasePath.IndexOf("SharpCompress.Test", StringComparison.OrdinalIgnoreCase); - SOLUTION_BASE_PATH = Path.GetDirectoryName(Microsoft.Extensions.PlatformAbstractions.PlatformServices.Default.Application.ApplicationBasePath.Substring(0, index)); -#endif + TEST_ARCHIVES_PATH = Path.Combine(SOLUTION_BASE_PATH, "TestArchives", "Archives"); ORIGINAL_FILES_PATH = Path.Combine(SOLUTION_BASE_PATH, "TestArchives", "Original"); MISC_TEST_FILES_PATH = Path.Combine(SOLUTION_BASE_PATH, "TestArchives", "MiscTest");