mirror of
https://github.com/soukoku/ntwain.git
synced 2025-04-05 20:59:23 +08:00
Cleanup unnecessary packages.
This commit is contained in:
parent
acfbec6a38
commit
eee811df14
@ -13,7 +13,10 @@
|
||||
<UseWPF>true</UseWPF>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net462'">
|
||||
<PackageReference Include="System.Buffers" Version="4.5.1" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition=" '$(TargetFramework)' != 'net462'">
|
||||
<PackageReference Include="System.Text.Encoding.CodePages" Version="7.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
|
@ -64,7 +64,9 @@ namespace NTwain
|
||||
// todo: find a better place for this
|
||||
if (!__encodingRegistered)
|
||||
{
|
||||
#if !NETFRAMEWORK
|
||||
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
|
||||
#endif
|
||||
__encodingRegistered = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user