diff --git a/build/Program.cs b/build/Program.cs index 81ac2a91..e134a2b0 100644 --- a/build/Program.cs +++ b/build/Program.cs @@ -43,26 +43,26 @@ class Program Target(Format, () => { Run("dotnet", "tool restore"); - Run("dotnet", "format --check"); + Run("dotnet", "format"); }); Target(Build, DependsOn(Format), framework => { - if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && framework == "net46") - { - return; - } Run("dotnet", "build src/SharpCompress/SharpCompress.csproj -c Release"); }); - Target(Test, DependsOn(Build), ForEach("net5.0"), + Target(Test, DependsOn(Build), ForEach("net5.0", "net461"), framework => { IEnumerable GetFiles(string d) { return Glob.Files(".", d); } + if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && framework == "net461") + { + return; + } foreach (var file in GetFiles("**/*.Test.csproj")) { diff --git a/build/build.csproj b/build/build.csproj index 1f5e65c7..5cd0ceaf 100644 --- a/build/build.csproj +++ b/build/build.csproj @@ -8,7 +8,7 @@ - + diff --git a/tests/SharpCompress.Test/SharpCompress.Test.csproj b/tests/SharpCompress.Test/SharpCompress.Test.csproj index 65dfd34d..a6fdcd76 100644 --- a/tests/SharpCompress.Test/SharpCompress.Test.csproj +++ b/tests/SharpCompress.Test/SharpCompress.Test.csproj @@ -1,6 +1,6 @@  - net5.0 + net5.0;net461 SharpCompress.Test ../../SharpCompress.snk true @@ -13,10 +13,7 @@ - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - +