From 2736b790974c1679ef10e60be7446c9305bfe91e Mon Sep 17 00:00:00 2001 From: majorro Date: Wed, 15 Jan 2025 04:43:16 +0300 Subject: [PATCH 1/4] signed test assembly --- .../SharpCompress.Test/SharpCompress.Test.csproj | 2 ++ tests/SharpCompress.Test/SharpCompress.Test.snk | Bin 0 -> 596 bytes 2 files changed, 2 insertions(+) create mode 100644 tests/SharpCompress.Test/SharpCompress.Test.snk diff --git a/tests/SharpCompress.Test/SharpCompress.Test.csproj b/tests/SharpCompress.Test/SharpCompress.Test.csproj index 3bfeaa3e..a47b2174 100644 --- a/tests/SharpCompress.Test/SharpCompress.Test.csproj +++ b/tests/SharpCompress.Test/SharpCompress.Test.csproj @@ -3,6 +3,8 @@ net8.0;net462 SharpCompress.Test SharpCompress.Test + SharpCompress.Test.snk + true diff --git a/tests/SharpCompress.Test/SharpCompress.Test.snk b/tests/SharpCompress.Test/SharpCompress.Test.snk new file mode 100644 index 0000000000000000000000000000000000000000..5a9ce09750fb5034882bc792f16f3ee64ce03fed GIT binary patch literal 596 zcmZQ)VqjoUVPFUfb~IvOVPIfnU}O;Oe*MwezU=-V({$s57Q6N>Us7szEba!wY%z14 ze81b9SVL}?EK_U$nmzpxSI&zg8Bx#F_SKKVuM2IstGCtdTh(n&4PlGKu81|w{s%1X)~P!zUu`0h_TZIM9S>!4{%GH@E>SrZ{pbIlDY0DHlf^x}mq!SS8o3k}FwHs5!t$N% z?ApSEBK~)ycW&9_YtEwmf70%bt4szRwrgg(_wH1=-+g|$VEpA_f-&$GB7P$WGMndM?2!pWM#~=2-FYD@! zomudr^~=V&`Pv<&ee+Dcu6O^uyy%O0$i?W4hpzise^&Gza%0vuiMze+f8V^d{@R5P zKevYJ9Z%Dgn{_L{wlVL>a`obd)u~R0=VhM@WYd}I*rmaffBcf4=Ij{Frn_b5o?kAJ zRVcljTz>ZO_vx})ccP9R^>sJ5beQ|Zrbn`Ae%rcf#g1G$HUb+QPd{40s}{a$bv*yx z)qD5Wsr&DdWK(+lCiPuJ?De@j@60~&`jV#cgD>|dtuy{B9x++`!ggf~MmCqLcV>S| L-(wOfFKPz>n}H@$ literal 0 HcmV?d00001 From 4f4af6e3fd9c54d5eab56e00eb84b170769fa5f3 Mon Sep 17 00:00:00 2001 From: majorro Date: Wed, 15 Jan 2025 04:46:07 +0300 Subject: [PATCH 2/4] make test friend assembly --- src/SharpCompress/AssemblyInfo.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SharpCompress/AssemblyInfo.cs b/src/SharpCompress/AssemblyInfo.cs index 0270020d..f8bd8bad 100644 --- a/src/SharpCompress/AssemblyInfo.cs +++ b/src/SharpCompress/AssemblyInfo.cs @@ -1,3 +1,5 @@ using System; +using System.Runtime.CompilerServices; [assembly: CLSCompliant(true)] +[assembly: InternalsVisibleTo("SharpCompress.Test,PublicKey=0024000004800000940000000602000000240000525341310004000001000100158bebf1433f76dffc356733c138babea7a47536c65ed8009b16372c6f4edbb20554db74a62687f56b97c20a6ce8c4b123280279e33c894e7b3aa93ab3c573656fde4db576cfe07dba09619ead26375b25d2c4a8e43f7be257d712b0dd2eb546f67adb09281338618a58ac834fc038dd7e2740a7ab3591826252e4f4516306dc")] From 7a1ad6688a339b3fdcf54ee411f63f56a65e60e6 Mon Sep 17 00:00:00 2001 From: majorro Date: Wed, 15 Jan 2025 04:46:22 +0300 Subject: [PATCH 3/4] make helpers internal --- src/SharpCompress/NotNullExtensions.cs | 2 +- src/SharpCompress/Utility.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/SharpCompress/NotNullExtensions.cs b/src/SharpCompress/NotNullExtensions.cs index 7342bd7b..29245114 100644 --- a/src/SharpCompress/NotNullExtensions.cs +++ b/src/SharpCompress/NotNullExtensions.cs @@ -6,7 +6,7 @@ using System.Runtime.CompilerServices; namespace SharpCompress.Helpers; -public static class NotNullExtensions +internal static class NotNullExtensions { public static IEnumerable Empty(this IEnumerable? source) => source ?? Enumerable.Empty(); diff --git a/src/SharpCompress/Utility.cs b/src/SharpCompress/Utility.cs index 6a6aeee7..74974850 100644 --- a/src/SharpCompress/Utility.cs +++ b/src/SharpCompress/Utility.cs @@ -9,8 +9,7 @@ using SharpCompress.Readers; namespace SharpCompress.Helpers; -[CLSCompliant(false)] -public static class Utility +internal static class Utility { public static ReadOnlyCollection ToReadOnly(this IList items) => new(items); From 1159efc6cc9c468c90b1a82cf83385301d3b95e2 Mon Sep 17 00:00:00 2001 From: majorro Date: Wed, 15 Jan 2025 21:43:10 +0300 Subject: [PATCH 4/4] formatting --- src/SharpCompress/AssemblyInfo.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SharpCompress/AssemblyInfo.cs b/src/SharpCompress/AssemblyInfo.cs index f8bd8bad..e51d97fe 100644 --- a/src/SharpCompress/AssemblyInfo.cs +++ b/src/SharpCompress/AssemblyInfo.cs @@ -2,4 +2,6 @@ using System; using System.Runtime.CompilerServices; [assembly: CLSCompliant(true)] -[assembly: InternalsVisibleTo("SharpCompress.Test,PublicKey=0024000004800000940000000602000000240000525341310004000001000100158bebf1433f76dffc356733c138babea7a47536c65ed8009b16372c6f4edbb20554db74a62687f56b97c20a6ce8c4b123280279e33c894e7b3aa93ab3c573656fde4db576cfe07dba09619ead26375b25d2c4a8e43f7be257d712b0dd2eb546f67adb09281338618a58ac834fc038dd7e2740a7ab3591826252e4f4516306dc")] +[assembly: InternalsVisibleTo( + "SharpCompress.Test,PublicKey=0024000004800000940000000602000000240000525341310004000001000100158bebf1433f76dffc356733c138babea7a47536c65ed8009b16372c6f4edbb20554db74a62687f56b97c20a6ce8c4b123280279e33c894e7b3aa93ab3c573656fde4db576cfe07dba09619ead26375b25d2c4a8e43f7be257d712b0dd2eb546f67adb09281338618a58ac834fc038dd7e2740a7ab3591826252e4f4516306dc" +)]