From 40781737c35c6c12c02969a4771376ce334c4691 Mon Sep 17 00:00:00 2001 From: Miha Zupan Date: Sat, 30 Nov 2024 03:03:26 +0100 Subject: [PATCH] Tweak SpecFileGen paths --- src/Markdig.Tests/Markdig.Tests.csproj | 14 +++++++------- src/Markdig.Tests/TestContainerBlocks.cs | 2 +- src/Markdig.Tests/TestFastStringWriter.cs | 4 +--- src/SpecFileGen/SpecFileGen.csproj | 2 +- 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/Markdig.Tests/Markdig.Tests.csproj b/src/Markdig.Tests/Markdig.Tests.csproj index 5d33dc8d5..1726b8f4c 100644 --- a/src/Markdig.Tests/Markdig.Tests.csproj +++ b/src/Markdig.Tests/Markdig.Tests.csproj @@ -1,14 +1,14 @@ - + - net462;net6.0;net8.0;net9.0 + net6.0;net8.0;net9.0 Exe false enable 13.0 Markdig.Tests.Program - $(MSBuildProjectDirectory)\..\SpecFileGen\bin\$(Configuration)\net8.0\SpecFileGen.dll - $(MSBuildProjectDirectory)\..\SpecFileGen\bin\$(Configuration)\net8.0\SpecFileGen.timestamp + $(MSBuildProjectDirectory)\..\SpecFileGen\bin\$(Configuration)\$(TargetFramework)\SpecFileGen.dll + $(MSBuildProjectDirectory)\..\SpecFileGen\bin\$(Configuration)\$(TargetFramework)\SpecFileGen.timestamp @@ -19,14 +19,14 @@ + - - + @@ -38,7 +38,7 @@ - + diff --git a/src/Markdig.Tests/TestContainerBlocks.cs b/src/Markdig.Tests/TestContainerBlocks.cs index c5e0440b7..abffe84fe 100644 --- a/src/Markdig.Tests/TestContainerBlocks.cs +++ b/src/Markdig.Tests/TestContainerBlocks.cs @@ -172,7 +172,7 @@ public void CopyTo() Assert.NotNull(destination[2]); Assert.Null(destination[3]); - Array.Clear(destination, 0, destination.Length); + Array.Clear(destination); container.Add(new ParagraphBlock()); container.CopyTo(destination, 1); diff --git a/src/Markdig.Tests/TestFastStringWriter.cs b/src/Markdig.Tests/TestFastStringWriter.cs index b5cbf6633..e28b0a60b 100644 --- a/src/Markdig.Tests/TestFastStringWriter.cs +++ b/src/Markdig.Tests/TestFastStringWriter.cs @@ -1,7 +1,6 @@ using System.Text; -using Markdig.Helpers; -#if NET6_0_OR_GREATER +using Markdig.Helpers; namespace Markdig.Tests; @@ -185,4 +184,3 @@ public async Task Write_StringBuilder() AssertToString("foobar\nbazfoo\nfoo" + new string('a', 1050)); } } -#endif \ No newline at end of file diff --git a/src/SpecFileGen/SpecFileGen.csproj b/src/SpecFileGen/SpecFileGen.csproj index 0ad72b08d..0c28b4631 100644 --- a/src/SpecFileGen/SpecFileGen.csproj +++ b/src/SpecFileGen/SpecFileGen.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net6.0;net8.0;net9.0 enable false