Skip to content

Commit

Permalink
Fix preprocessor condition
Browse files Browse the repository at this point in the history
  • Loading branch information
inthemedium committed Oct 1, 2021
1 parent 01f7336 commit 6983e66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SharpCompress/Common/ArchiveEncoding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ public ArchiveEncoding(Encoding def, Encoding password)
Password = password;
}

#if !NETFRAMEWORK
static ArchiveEncoding()
{
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
}
#endif

public string Decode(byte[] bytes)
{
Expand Down

0 comments on commit 6983e66

Please sign in to comment.