mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
Cleanup unnecessary packages.
This commit is contained in:
@@ -13,7 +13,10 @@
|
|||||||
<UseWPF>true</UseWPF>
|
<UseWPF>true</UseWPF>
|
||||||
</PropertyGroup>
|
</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" />
|
<PackageReference Include="System.Text.Encoding.CodePages" Version="7.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,9 @@ namespace NTwain
|
|||||||
// todo: find a better place for this
|
// todo: find a better place for this
|
||||||
if (!__encodingRegistered)
|
if (!__encodingRegistered)
|
||||||
{
|
{
|
||||||
|
#if !NETFRAMEWORK
|
||||||
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
|
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
|
||||||
|
#endif
|
||||||
__encodingRegistered = true;
|
__encodingRegistered = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user