Skip to content

Commit edb1bfc

Browse files
committed
Support netstandard1.3+
1 parent e4d04b5 commit edb1bfc

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/FileTypeInterrogator.Tests/FileTypeInterrogator.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<AppDesignerFolder>Properties</AppDesignerFolder>
1111
<RootNamespace>FileTypeInterrogator.Tests</RootNamespace>
1212
<AssemblyName>FileTypeInterrogator.Tests</AssemblyName>
13-
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
13+
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
1414
<FileAlignment>512</FileAlignment>
1515
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
1616
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">15.0</VisualStudioVersion>

src/FileTypeInterrogator/BaseFileTypeInterrogator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ private bool IsUTF8(byte[] input, out bool hasBOM)
273273
UTF8Encoding utf8WithoutBOM = new UTF8Encoding(false, true);
274274
try
275275
{
276-
utf8WithoutBOM.GetString(input);
276+
utf8WithoutBOM.GetString(input, 0, input.Length);
277277
isUTF8 = true;
278278
}
279279
catch (ArgumentException)

src/FileTypeInterrogator/FileTypeInterrogator.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard1.4;netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard1.3;</TargetFrameworks>
55
<PackageProjectUrl>https://github.com/ghost1face/FileTypeInterrogator</PackageProjectUrl>
66
<RepositoryUrl>https://github.com/ghost1face/FileTypeInterrogator</RepositoryUrl>
77
<PackageTags>file-type-detection file-types magic-numbers content-type mime-type</PackageTags>

0 commit comments

Comments
 (0)