From 2705f440febe98b43b5b9dd3de4f5659053d8e97 Mon Sep 17 00:00:00 2001 From: Mutudu Date: Tue, 12 Dec 2023 18:27:05 +0800 Subject: [PATCH] Refactor --- perf/Benchmark/Benchmark.csproj | 2 +- src/Zaabee.Brotli/BrotliCompressor.cs | 26 +++++------ src/Zaabee.LZ4/Lz4Compressor.cs | 45 +++++++------------ src/Zaabee.SharpZipLib/BZip2.Helper.cs | 6 +++ src/Zaabee.SharpZipLib/Deflate.Helper.cs | 7 +++ src/Zaabee.SharpZipLib/GlobalUsings.cs | 1 + .../BrotliCompressor.cs | 19 +++----- .../DeflateCompressor.cs | 19 +++----- .../GzipCompressor.cs | 19 +++----- src/Zaabee.XZ/XzCompressor.cs | 22 ++++----- src/Zaabee.Zstd/ZstdCompressor.cs | 19 +++----- .../Zaabee.BrotliNET.UnitTest.csproj | 4 +- .../Zaabee.Compressor.UnitTest.csproj | 4 +- .../Zaabee.LZ4.UnitTest.csproj | 4 +- .../Zaabee.LZMA.UnitTest.csproj | 4 +- .../Zaabee.SharpZipLib.UnitTest.csproj | 4 +- .../Zaabee.Snappy.UnitTest.csproj | 4 +- ...Zaabee.SystemIoCompression.UnitTest.csproj | 4 +- .../Zaabee.XZ.UnitTest.csproj | 4 +- .../Zaabee.Zstd.UnitTest.csproj | 4 +- 20 files changed, 91 insertions(+), 130 deletions(-) create mode 100644 src/Zaabee.SharpZipLib/BZip2.Helper.cs create mode 100644 src/Zaabee.SharpZipLib/Deflate.Helper.cs diff --git a/perf/Benchmark/Benchmark.csproj b/perf/Benchmark/Benchmark.csproj index ee8f6e0..7154561 100644 --- a/perf/Benchmark/Benchmark.csproj +++ b/perf/Benchmark/Benchmark.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/Zaabee.Brotli/BrotliCompressor.cs b/src/Zaabee.Brotli/BrotliCompressor.cs index b03c0f2..4da54a2 100644 --- a/src/Zaabee.Brotli/BrotliCompressor.cs +++ b/src/Zaabee.Brotli/BrotliCompressor.cs @@ -1,20 +1,14 @@ namespace Zaabee.Brotli; -public sealed class BrotliCompressor : ICompressor +public sealed class BrotliCompressor( + uint quality = BrotliHelper.Quality, + uint window = BrotliHelper.Window) + : ICompressor { - private readonly uint _quality; - private readonly uint _window; - - public BrotliCompressor(uint quality = BrotliHelper.Quality, uint window = BrotliHelper.Window) - { - _quality = quality; - _window = window; - } - public ValueTask CompressAsync( Stream rawStream, CancellationToken cancellationToken = default - ) => rawStream.ToBrotliAsync(_quality, _window, cancellationToken); + ) => rawStream.ToBrotliAsync(quality, window, cancellationToken); public ValueTask DecompressAsync( Stream compressedStream, @@ -25,7 +19,7 @@ public ValueTask CompressAsync( Stream inputStream, Stream outputStream, CancellationToken cancellationToken = default - ) => inputStream.ToBrotliAsync(outputStream, _quality, _window, cancellationToken); + ) => inputStream.ToBrotliAsync(outputStream, quality, window, cancellationToken); public ValueTask DecompressAsync( Stream inputStream, @@ -33,17 +27,17 @@ public ValueTask DecompressAsync( CancellationToken cancellationToken = default ) => inputStream.UnBrotliAsync(outputStream, cancellationToken); - public byte[] Compress(byte[] rawBytes) => rawBytes.ToBrotli(_quality, _window); + public byte[] Compress(byte[] rawBytes) => rawBytes.ToBrotli(quality, window); public byte[] Decompress(byte[] compressedBytes) => compressedBytes.UnBrotli(); - public MemoryStream Compress(Stream rawStream) => rawStream.ToBrotli(_quality, _window); + public MemoryStream Compress(Stream rawStream) => rawStream.ToBrotli(quality, window); public MemoryStream Decompress(Stream compressedStream) => compressedStream.UnBrotli(); public void Compress(Stream inputStream, Stream outputStream) => - inputStream.ToBrotli(outputStream, _quality, _window); + inputStream.ToBrotli(outputStream, quality, window); public void Decompress(Stream inputStream, Stream outputStream) => inputStream.UnBrotli(outputStream); -} +} \ No newline at end of file diff --git a/src/Zaabee.LZ4/Lz4Compressor.cs b/src/Zaabee.LZ4/Lz4Compressor.cs index 2674eee..53e56b9 100644 --- a/src/Zaabee.LZ4/Lz4Compressor.cs +++ b/src/Zaabee.LZ4/Lz4Compressor.cs @@ -1,60 +1,47 @@ namespace Zaabee.LZ4; -public sealed class Lz4Compressor : ICompressor +public sealed class Lz4Compressor( + LZ4Level level = Lz4Helper.Level, + int extraMemory = Lz4Helper.ExtraMemory, + bool interactive = Lz4Helper.Interactive, + LZ4DecoderSettings? settings = Lz4Helper.Settings) + : ICompressor { - private readonly LZ4Level _level; - private readonly int _extraMemory; - private readonly bool _interactive; - private readonly LZ4DecoderSettings? _settings; - - public Lz4Compressor( - LZ4Level level = Lz4Helper.Level, - int extraMemory = Lz4Helper.ExtraMemory, - bool interactive = Lz4Helper.Interactive, - LZ4DecoderSettings? settings = Lz4Helper.Settings - ) - { - _interactive = interactive; - _settings = settings; - _extraMemory = extraMemory; - _level = level; - } - public ValueTask CompressAsync( Stream rawStream, CancellationToken cancellationToken = default - ) => rawStream.ToLz4Async(_level, _extraMemory, cancellationToken); + ) => rawStream.ToLz4Async(level, extraMemory, cancellationToken); public ValueTask DecompressAsync( Stream compressedStream, CancellationToken cancellationToken = default - ) => compressedStream.UnLz4Async(_settings, _interactive, cancellationToken); + ) => compressedStream.UnLz4Async(settings, interactive, cancellationToken); public ValueTask CompressAsync( Stream inputStream, Stream outputStream, CancellationToken cancellationToken = default - ) => inputStream.ToLz4Async(outputStream, _level, _extraMemory, cancellationToken); + ) => inputStream.ToLz4Async(outputStream, level, extraMemory, cancellationToken); public ValueTask DecompressAsync( Stream inputStream, Stream outputStream, CancellationToken cancellationToken = default - ) => inputStream.UnLz4Async(outputStream, _settings, _interactive, cancellationToken); + ) => inputStream.UnLz4Async(outputStream, settings, interactive, cancellationToken); - public byte[] Compress(byte[] rawBytes) => rawBytes.ToLz4(_level, _extraMemory); + public byte[] Compress(byte[] rawBytes) => rawBytes.ToLz4(level, extraMemory); public byte[] Decompress(byte[] compressedBytes) => - compressedBytes.UnLz4(_settings, _interactive); + compressedBytes.UnLz4(settings, interactive); - public MemoryStream Compress(Stream rawStream) => rawStream.ToLz4(_level, _extraMemory); + public MemoryStream Compress(Stream rawStream) => rawStream.ToLz4(level, extraMemory); public MemoryStream Decompress(Stream compressedStream) => - compressedStream.UnLz4(_settings, _interactive); + compressedStream.UnLz4(settings, interactive); public void Compress(Stream inputStream, Stream outputStream) => - inputStream.ToLz4(outputStream, _level, _extraMemory); + inputStream.ToLz4(outputStream, level, extraMemory); public void Decompress(Stream inputStream, Stream outputStream) => - inputStream.UnLz4(outputStream, _settings, _interactive); + inputStream.UnLz4(outputStream, settings, interactive); } diff --git a/src/Zaabee.SharpZipLib/BZip2.Helper.cs b/src/Zaabee.SharpZipLib/BZip2.Helper.cs new file mode 100644 index 0000000..6a3bfb2 --- /dev/null +++ b/src/Zaabee.SharpZipLib/BZip2.Helper.cs @@ -0,0 +1,6 @@ +namespace Zaabee.SharpZipLib; + +public static partial class Bzip2Helper +{ + internal const int BlockSize = 9; +} \ No newline at end of file diff --git a/src/Zaabee.SharpZipLib/Deflate.Helper.cs b/src/Zaabee.SharpZipLib/Deflate.Helper.cs new file mode 100644 index 0000000..384b151 --- /dev/null +++ b/src/Zaabee.SharpZipLib/Deflate.Helper.cs @@ -0,0 +1,7 @@ +namespace Zaabee.SharpZipLib; + +public static partial class DeflateHelper +{ + internal const Deflater? Deflater = null; + internal const int BufferSize = 512; +} \ No newline at end of file diff --git a/src/Zaabee.SharpZipLib/GlobalUsings.cs b/src/Zaabee.SharpZipLib/GlobalUsings.cs index fa88a4c..99221f7 100644 --- a/src/Zaabee.SharpZipLib/GlobalUsings.cs +++ b/src/Zaabee.SharpZipLib/GlobalUsings.cs @@ -5,6 +5,7 @@ global using System.Threading.Tasks; global using ICSharpCode.SharpZipLib.BZip2; global using ICSharpCode.SharpZipLib.GZip; +global using ICSharpCode.SharpZipLib.Zip.Compression; global using ICSharpCode.SharpZipLib.Zip.Compression.Streams; global using Zaabee.Compressor.Abstractions; global using Zaabee.Extensions; diff --git a/src/Zaabee.SystemIoCompression/BrotliCompressor.cs b/src/Zaabee.SystemIoCompression/BrotliCompressor.cs index b3d10e2..176ad3d 100644 --- a/src/Zaabee.SystemIoCompression/BrotliCompressor.cs +++ b/src/Zaabee.SystemIoCompression/BrotliCompressor.cs @@ -1,19 +1,12 @@ #if !NETSTANDARD2_0 namespace Zaabee.SystemIoCompression; -public sealed class BrotliCompressor : ICompressor +public sealed class BrotliCompressor(CompressionLevel compressionLevel = CompressionLevel.Optimal) : ICompressor { - private readonly CompressionLevel _compressionLevel; - - public BrotliCompressor(CompressionLevel compressionLevel = CompressionLevel.Optimal) - { - _compressionLevel = compressionLevel; - } - public ValueTask CompressAsync( Stream rawStream, CancellationToken cancellationToken = default - ) => rawStream.ToBrotliAsync(_compressionLevel, cancellationToken); + ) => rawStream.ToBrotliAsync(compressionLevel, cancellationToken); public ValueTask DecompressAsync( Stream compressedStream, @@ -24,7 +17,7 @@ public ValueTask CompressAsync( Stream inputStream, Stream outputStream, CancellationToken cancellationToken = default - ) => inputStream.ToBrotliAsync(outputStream, _compressionLevel, cancellationToken); + ) => inputStream.ToBrotliAsync(outputStream, compressionLevel, cancellationToken); public ValueTask DecompressAsync( Stream inputStream, @@ -32,16 +25,16 @@ public ValueTask DecompressAsync( CancellationToken cancellationToken = default ) => inputStream.UnBrotliAsync(outputStream, cancellationToken); - public byte[] Compress(byte[] rawBytes) => rawBytes.ToBrotli(_compressionLevel); + public byte[] Compress(byte[] rawBytes) => rawBytes.ToBrotli(compressionLevel); public byte[] Decompress(byte[] compressedBytes) => compressedBytes.UnBrotli(); - public MemoryStream Compress(Stream rawStream) => rawStream.ToBrotli(_compressionLevel); + public MemoryStream Compress(Stream rawStream) => rawStream.ToBrotli(compressionLevel); public MemoryStream Decompress(Stream compressedStream) => compressedStream.UnBrotli(); public void Compress(Stream inputStream, Stream outputStream) => - inputStream.ToBrotli(outputStream, _compressionLevel); + inputStream.ToBrotli(outputStream, compressionLevel); public void Decompress(Stream inputStream, Stream outputStream) => inputStream.UnBrotli(outputStream); diff --git a/src/Zaabee.SystemIoCompression/DeflateCompressor.cs b/src/Zaabee.SystemIoCompression/DeflateCompressor.cs index 27e772a..1090845 100644 --- a/src/Zaabee.SystemIoCompression/DeflateCompressor.cs +++ b/src/Zaabee.SystemIoCompression/DeflateCompressor.cs @@ -1,18 +1,11 @@ namespace Zaabee.SystemIoCompression; -public sealed class DeflateCompressor : ICompressor +public sealed class DeflateCompressor(CompressionLevel compressionLevel = CompressionLevel.Optimal) : ICompressor { - private readonly CompressionLevel _compressionLevel; - - public DeflateCompressor(CompressionLevel compressionLevel = CompressionLevel.Optimal) - { - _compressionLevel = compressionLevel; - } - public ValueTask CompressAsync( Stream rawStream, CancellationToken cancellationToken = default - ) => rawStream.ToDeflateAsync(_compressionLevel, cancellationToken); + ) => rawStream.ToDeflateAsync(compressionLevel, cancellationToken); public ValueTask DecompressAsync( Stream compressedStream, @@ -23,7 +16,7 @@ public ValueTask CompressAsync( Stream inputStream, Stream outputStream, CancellationToken cancellationToken = default - ) => inputStream.ToDeflateAsync(outputStream, _compressionLevel, cancellationToken); + ) => inputStream.ToDeflateAsync(outputStream, compressionLevel, cancellationToken); public ValueTask DecompressAsync( Stream inputStream, @@ -31,16 +24,16 @@ public ValueTask DecompressAsync( CancellationToken cancellationToken = default ) => inputStream.UnDeflateAsync(outputStream, cancellationToken); - public byte[] Compress(byte[] rawBytes) => rawBytes.ToDeflate(_compressionLevel); + public byte[] Compress(byte[] rawBytes) => rawBytes.ToDeflate(compressionLevel); public byte[] Decompress(byte[] compressedBytes) => compressedBytes.UnDeflate(); - public MemoryStream Compress(Stream rawStream) => rawStream.ToDeflate(_compressionLevel); + public MemoryStream Compress(Stream rawStream) => rawStream.ToDeflate(compressionLevel); public MemoryStream Decompress(Stream compressedStream) => compressedStream.UnDeflate(); public void Compress(Stream inputStream, Stream outputStream) => - inputStream.ToDeflate(outputStream, _compressionLevel); + inputStream.ToDeflate(outputStream, compressionLevel); public void Decompress(Stream inputStream, Stream outputStream) => inputStream.UnDeflate(outputStream); diff --git a/src/Zaabee.SystemIoCompression/GzipCompressor.cs b/src/Zaabee.SystemIoCompression/GzipCompressor.cs index 72152b1..064110a 100644 --- a/src/Zaabee.SystemIoCompression/GzipCompressor.cs +++ b/src/Zaabee.SystemIoCompression/GzipCompressor.cs @@ -1,18 +1,11 @@ namespace Zaabee.SystemIoCompression; -public sealed class GzipCompressor : ICompressor +public sealed class GzipCompressor(CompressionLevel compressionLevel = CompressionLevel.Optimal) : ICompressor { - private readonly CompressionLevel _compressionLevel; - - public GzipCompressor(CompressionLevel compressionLevel = CompressionLevel.Optimal) - { - _compressionLevel = compressionLevel; - } - public ValueTask CompressAsync( Stream rawStream, CancellationToken cancellationToken = default - ) => rawStream.ToGZipAsync(_compressionLevel, cancellationToken); + ) => rawStream.ToGZipAsync(compressionLevel, cancellationToken); public ValueTask DecompressAsync( Stream compressedStream, @@ -23,7 +16,7 @@ public ValueTask CompressAsync( Stream inputStream, Stream outputStream, CancellationToken cancellationToken = default - ) => inputStream.ToGZipAsync(outputStream, _compressionLevel, cancellationToken); + ) => inputStream.ToGZipAsync(outputStream, compressionLevel, cancellationToken); public ValueTask DecompressAsync( Stream inputStream, @@ -31,16 +24,16 @@ public ValueTask DecompressAsync( CancellationToken cancellationToken = default ) => inputStream.UnGZipAsync(outputStream, cancellationToken); - public byte[] Compress(byte[] rawBytes) => rawBytes.ToGZip(_compressionLevel); + public byte[] Compress(byte[] rawBytes) => rawBytes.ToGZip(compressionLevel); public byte[] Decompress(byte[] compressedBytes) => compressedBytes.UnGZip(); - public MemoryStream Compress(Stream rawStream) => rawStream.ToGZip(_compressionLevel); + public MemoryStream Compress(Stream rawStream) => rawStream.ToGZip(compressionLevel); public MemoryStream Decompress(Stream compressedStream) => compressedStream.UnGZip(); public void Compress(Stream inputStream, Stream outputStream) => - inputStream.ToGZip(outputStream, _compressionLevel); + inputStream.ToGZip(outputStream, compressionLevel); public void Decompress(Stream inputStream, Stream outputStream) => inputStream.UnGZip(outputStream); diff --git a/src/Zaabee.XZ/XzCompressor.cs b/src/Zaabee.XZ/XzCompressor.cs index cc2e243..0e9dd5d 100644 --- a/src/Zaabee.XZ/XzCompressor.cs +++ b/src/Zaabee.XZ/XzCompressor.cs @@ -1,20 +1,14 @@ namespace Zaabee.XZ; -public sealed class XzCompressor : ICompressor +public sealed class XzCompressor( + int threads = XzHelper.Threads, + uint preset = XzHelper.Preset) + : ICompressor { - private readonly int _threads; - private readonly uint _preset; - - public XzCompressor(int threads = XzHelper.Threads, uint preset = XzHelper.Preset) - { - _threads = threads; - _preset = preset; - } - public ValueTask CompressAsync( Stream rawStream, CancellationToken cancellationToken = default - ) => rawStream.ToXzAsync(_threads, _preset, cancellationToken); + ) => rawStream.ToXzAsync(threads, preset, cancellationToken); public ValueTask DecompressAsync( Stream compressedStream, @@ -25,7 +19,7 @@ public ValueTask CompressAsync( Stream inputStream, Stream outputStream, CancellationToken cancellationToken = default - ) => inputStream.ToXzAsync(outputStream, _threads, _preset, cancellationToken); + ) => inputStream.ToXzAsync(outputStream, threads, preset, cancellationToken); public ValueTask DecompressAsync( Stream inputStream, @@ -37,12 +31,12 @@ public ValueTask DecompressAsync( public byte[] Decompress(byte[] compressedBytes) => compressedBytes.UnXz(); - public MemoryStream Compress(Stream rawStream) => rawStream.ToXz(_threads, _preset); + public MemoryStream Compress(Stream rawStream) => rawStream.ToXz(threads, preset); public MemoryStream Decompress(Stream compressedStream) => compressedStream.UnXz(); public void Compress(Stream inputStream, Stream outputStream) => - inputStream.ToXz(outputStream, _threads, _preset); + inputStream.ToXz(outputStream, threads, preset); public void Decompress(Stream inputStream, Stream outputStream) => inputStream.UnXz(outputStream); diff --git a/src/Zaabee.Zstd/ZstdCompressor.cs b/src/Zaabee.Zstd/ZstdCompressor.cs index 1a4f6b0..cc0c35c 100644 --- a/src/Zaabee.Zstd/ZstdCompressor.cs +++ b/src/Zaabee.Zstd/ZstdCompressor.cs @@ -1,18 +1,11 @@ namespace Zaabee.Zstd; -public sealed class ZstdCompressor : ICompressor +public sealed class ZstdCompressor(int level = ZstdHelper.Level) : ICompressor { - private readonly int _level; - - public ZstdCompressor(int level = ZstdHelper.Level) - { - _level = level; - } - public ValueTask CompressAsync( Stream rawStream, CancellationToken cancellationToken = default - ) => rawStream.ToZstdAsync(_level, cancellationToken); + ) => rawStream.ToZstdAsync(level, cancellationToken); public ValueTask DecompressAsync( Stream compressedStream, @@ -23,7 +16,7 @@ public ValueTask CompressAsync( Stream inputStream, Stream outputStream, CancellationToken cancellationToken = default - ) => inputStream.ToZstdAsync(outputStream, _level, cancellationToken); + ) => inputStream.ToZstdAsync(outputStream, level, cancellationToken); public ValueTask DecompressAsync( Stream inputStream, @@ -31,16 +24,16 @@ public ValueTask DecompressAsync( CancellationToken cancellationToken = default ) => inputStream.UnZstdAsync(outputStream, cancellationToken); - public byte[] Compress(byte[] rawBytes) => rawBytes.ToZstd(_level); + public byte[] Compress(byte[] rawBytes) => rawBytes.ToZstd(level); public byte[] Decompress(byte[] compressedBytes) => compressedBytes.UnZstd(); - public MemoryStream Compress(Stream rawStream) => rawStream.ToZstd(_level); + public MemoryStream Compress(Stream rawStream) => rawStream.ToZstd(level); public MemoryStream Decompress(Stream compressedStream) => compressedStream.UnZstd(); public void Compress(Stream inputStream, Stream outputStream) => - inputStream.ToZstd(outputStream, _level); + inputStream.ToZstd(outputStream, level); public void Decompress(Stream inputStream, Stream outputStream) => inputStream.UnZstd(outputStream); diff --git a/tests/Zaabee.BrotliNET.UnitTest/Zaabee.BrotliNET.UnitTest.csproj b/tests/Zaabee.BrotliNET.UnitTest/Zaabee.BrotliNET.UnitTest.csproj index ba6cee9..5114172 100644 --- a/tests/Zaabee.BrotliNET.UnitTest/Zaabee.BrotliNET.UnitTest.csproj +++ b/tests/Zaabee.BrotliNET.UnitTest/Zaabee.BrotliNET.UnitTest.csproj @@ -10,8 +10,8 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/tests/Zaabee.Compressor.UnitTest/Zaabee.Compressor.UnitTest.csproj b/tests/Zaabee.Compressor.UnitTest/Zaabee.Compressor.UnitTest.csproj index 0f38660..1998d1a 100644 --- a/tests/Zaabee.Compressor.UnitTest/Zaabee.Compressor.UnitTest.csproj +++ b/tests/Zaabee.Compressor.UnitTest/Zaabee.Compressor.UnitTest.csproj @@ -10,8 +10,8 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/tests/Zaabee.LZ4.UnitTest/Zaabee.LZ4.UnitTest.csproj b/tests/Zaabee.LZ4.UnitTest/Zaabee.LZ4.UnitTest.csproj index 1c4f9bd..6d54762 100644 --- a/tests/Zaabee.LZ4.UnitTest/Zaabee.LZ4.UnitTest.csproj +++ b/tests/Zaabee.LZ4.UnitTest/Zaabee.LZ4.UnitTest.csproj @@ -10,8 +10,8 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/tests/Zaabee.LZMA.UnitTest/Zaabee.LZMA.UnitTest.csproj b/tests/Zaabee.LZMA.UnitTest/Zaabee.LZMA.UnitTest.csproj index 7324ddb..c56d974 100644 --- a/tests/Zaabee.LZMA.UnitTest/Zaabee.LZMA.UnitTest.csproj +++ b/tests/Zaabee.LZMA.UnitTest/Zaabee.LZMA.UnitTest.csproj @@ -10,8 +10,8 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/tests/Zaabee.SharpZipLib.UnitTest/Zaabee.SharpZipLib.UnitTest.csproj b/tests/Zaabee.SharpZipLib.UnitTest/Zaabee.SharpZipLib.UnitTest.csproj index 0dd0242..3b4b6cc 100644 --- a/tests/Zaabee.SharpZipLib.UnitTest/Zaabee.SharpZipLib.UnitTest.csproj +++ b/tests/Zaabee.SharpZipLib.UnitTest/Zaabee.SharpZipLib.UnitTest.csproj @@ -10,8 +10,8 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/tests/Zaabee.Snappy.UnitTest/Zaabee.Snappy.UnitTest.csproj b/tests/Zaabee.Snappy.UnitTest/Zaabee.Snappy.UnitTest.csproj index b65d2de..f7b0401 100644 --- a/tests/Zaabee.Snappy.UnitTest/Zaabee.Snappy.UnitTest.csproj +++ b/tests/Zaabee.Snappy.UnitTest/Zaabee.Snappy.UnitTest.csproj @@ -10,8 +10,8 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/tests/Zaabee.SystemIoCompression.UnitTest/Zaabee.SystemIoCompression.UnitTest.csproj b/tests/Zaabee.SystemIoCompression.UnitTest/Zaabee.SystemIoCompression.UnitTest.csproj index 81a8fe2..bed2330 100644 --- a/tests/Zaabee.SystemIoCompression.UnitTest/Zaabee.SystemIoCompression.UnitTest.csproj +++ b/tests/Zaabee.SystemIoCompression.UnitTest/Zaabee.SystemIoCompression.UnitTest.csproj @@ -11,8 +11,8 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/tests/Zaabee.XZ.UnitTest/Zaabee.XZ.UnitTest.csproj b/tests/Zaabee.XZ.UnitTest/Zaabee.XZ.UnitTest.csproj index a790107..308dffa 100644 --- a/tests/Zaabee.XZ.UnitTest/Zaabee.XZ.UnitTest.csproj +++ b/tests/Zaabee.XZ.UnitTest/Zaabee.XZ.UnitTest.csproj @@ -10,8 +10,8 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/tests/Zaabee.Zstd.UnitTest/Zaabee.Zstd.UnitTest.csproj b/tests/Zaabee.Zstd.UnitTest/Zaabee.Zstd.UnitTest.csproj index abaa18f..45031af 100644 --- a/tests/Zaabee.Zstd.UnitTest/Zaabee.Zstd.UnitTest.csproj +++ b/tests/Zaabee.Zstd.UnitTest/Zaabee.Zstd.UnitTest.csproj @@ -10,8 +10,8 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all