diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f7601e..739b2e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,8 +11,8 @@ jobs: os: [ubuntu-latest, windows-latest] configuration: [Debug, Release] steps: - - uses: actions/checkout@v1 - - uses: actions/setup-dotnet@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-dotnet@v4 - name: Build and test shell: pwsh run: | diff --git a/.vscode/launch.json b/.vscode/launch.json index c4d2564..5db443b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,7 +10,7 @@ "request": "launch", "preLaunchTask": "build", // If you have changed target frameworks, make sure to update the program path. - "program": "${workspaceRoot}/src/IxMilia.Pdf.Test/bin/Debug/net7.0/IxMilia.Pdf.Test.dll", + "program": "${workspaceRoot}/src/IxMilia.Pdf.Test/bin/Debug/net8.0/IxMilia.Pdf.Test.dll", "args": [], "cwd": "${workspaceRoot}/src/IxMilia.Pdf.Test", // For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window diff --git a/global.json b/global.json index 4037c77..989a69c 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "7.0.100", + "version": "8.0.100", "rollForward": "latestMinor" } } \ No newline at end of file diff --git a/src/IxMilia.Pdf.Test/IxMilia.Pdf.Test.csproj b/src/IxMilia.Pdf.Test/IxMilia.Pdf.Test.csproj index 2426137..7d3df23 100644 --- a/src/IxMilia.Pdf.Test/IxMilia.Pdf.Test.csproj +++ b/src/IxMilia.Pdf.Test/IxMilia.Pdf.Test.csproj @@ -2,7 +2,7 @@ Exe - net7.0 + net8.0 @@ -10,13 +10,9 @@ - - - - - - - + + + diff --git a/src/IxMilia.Pdf.Test/PdfWriterTests.cs b/src/IxMilia.Pdf.Test/PdfWriterTests.cs index cb04e1a..fb256a6 100644 --- a/src/IxMilia.Pdf.Test/PdfWriterTests.cs +++ b/src/IxMilia.Pdf.Test/PdfWriterTests.cs @@ -266,7 +266,7 @@ public void VerifyFontsAreAddedOnSaveTest() var text = new PdfText("foo", new PdfFontType1(PdfFontType1Type.Helvetica), PdfMeasurement.Points(12.0), new PdfPoint()); page.Items.Add(text); file.Pages.Add(page); - Assert.Equal(0, file.Fonts.Count); + Assert.Empty(file.Fonts); using (var ms = new MemoryStream()) { diff --git a/src/IxMilia.Pdf/IxMilia.Pdf.csproj b/src/IxMilia.Pdf/IxMilia.Pdf.csproj index 4dae6a6..1cbbcac 100644 --- a/src/IxMilia.Pdf/IxMilia.Pdf.csproj +++ b/src/IxMilia.Pdf/IxMilia.Pdf.csproj @@ -5,7 +5,7 @@ Copyright 2018 IxMilia.Pdf IxMilia - netstandard1.3 + netstandard2.0 IxMilia.Pdf IxMilia.Pdf PDF @@ -19,7 +19,7 @@ - +