Skip to content

Commit 3e98f9e

Browse files
committed
Register code pages provider when building for .NET Core
1 parent 2a91e9b commit 3e98f9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Kavod.Vba.Compression/Extensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ internal static class Extensions
1010
[DebuggerStepThrough]
1111
internal static byte[] ToMcbsBytes(this string textToConvert, UInt16 codePage)
1212
{
13-
#if !NET48
13+
#if NET
1414
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
1515
#endif
1616
return Encoding.GetEncoding(codePage).GetBytes(textToConvert);

0 commit comments

Comments
 (0)