Replace obsolete netcoreapp test target with net471

This commit is contained in:
Jason Nelson 2024-03-15 12:18:12 -07:00 committed by BobLd
parent 1d2777d59a
commit 321f321e53
5 changed files with 6 additions and 6 deletions

View File

@ -96,7 +96,7 @@ namespace UglyToad.PdfPig.Tests.Fonts.TrueType.Parser
foreach (var s in data)
{
var parts = s.Split(' ', StringSplitOptions.RemoveEmptyEntries);
var parts = s.Split(' ').Where(x => x.Length > 0).ToArray();
var name = parts[0];

View File

@ -21,14 +21,14 @@
foreach (var c in words.Where(w => path.Contains(w.BoundingBox)).ToList())
{
Assert.Equal("in", c.Text.Split("_").Last());
Assert.Equal("in", c.Text.Split('_').Last());
words.Remove(c);
}
}
foreach (var w in words)
{
Assert.NotEqual("in", w.Text.Split("_").Last());
Assert.NotEqual("in", w.Text.Split('_').Last());
}
}
}

View File

@ -16,7 +16,7 @@
builder.AddPage(PageSize.A4);
// Set bookmark items.
var inputs = words.Split(" ", StringSplitOptions.RemoveEmptyEntries);
var inputs = words.Split(' ').Where(x => x.Length > 0).ToArray();
builder.Bookmarks = new Bookmarks(inputs.Select(x => new DocumentBookmarkNode(x,
0,
new ExplicitDestination(1,

View File

@ -162,7 +162,7 @@ three %PDF-1.6";
const string hex =
@"00 0F 4A 43 42 31 33 36 36 31 32 32 37 2E 70 64 66 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 50 44 46 20 43 41 52 4F 01 00 FF FF FF FF 00 00 00 00 00 04 DF 28 00 00 00 00 AF 51 7E 82 AF 52 D7 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 81 81 03 0D 00 00 25 50 44 46 2D 31 2E 31 0A 25 E2 E3 CF D3 0D 0A 31 20 30 20 6F 62 6A";
var bytes = hex.Split(' ', StringSplitOptions.RemoveEmptyEntries).Select(x => HexToken.Convert(x[0], x[1]));
var bytes = hex.Split(' ').Where(x => x.Length > 0).Select(x => HexToken.Convert(x[0], x[1]));
var str = OtherEncodings.BytesAsLatin1String(bytes.ToArray());

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netcoreapp2.1;net8.0</TargetFrameworks>
<TargetFrameworks>net471;net8.0</TargetFrameworks>
<IsTestProject>true</IsTestProject>
<IsPackable>false</IsPackable>
<DebugType>full</DebugType>