Skip to content

Commit 141711d

Browse files
committed
Target .NET 9 and Upgrade Packages
1 parent f4d9a39 commit 141711d

18 files changed

+26
-23
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ dotnet_diagnostic.SA1633.severity = none
3131
# require standardized summary test for constructors
3232
dotnet_diagnostic.SA1642.severity = none
3333

34+
# opening square brackets cannot be preceded by a space
35+
dotnet_diagnostic.SA1010.severity = none
36+
3437
[*Tests.cs]
3538

3639
# require XML documentation

.github/workflows/build-test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ jobs:
1717
uses: actions/setup-dotnet@v4
1818
with:
1919
dotnet-version: |
20-
6.0.x
21-
7.0.x
2220
8.0.x
21+
9.0.x
2322
2423
- name: Restore Dependencies
2524
run: dotnet restore src

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Setup .NET 8
5252
uses: actions/setup-dotnet@v4
5353
with:
54-
dotnet-version: 8.0.x
54+
dotnet-version: 9.0.x
5555

5656
# Restore & Build
5757
- name: Restore

.github/workflows/publish-preview.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ jobs:
2222
uses: actions/setup-dotnet@v4
2323
with:
2424
dotnet-version: |
25-
6.0.x
26-
7.0.x
2725
8.0.x
26+
9.0.x
2827
2928
- name: Restore Dependencies
3029
run: dotnet restore src

.github/workflows/publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ jobs:
1919
uses: actions/setup-dotnet@v4
2020
with:
2121
dotnet-version: |
22-
6.0.x
23-
7.0.x
2422
8.0.x
23+
9.0.x
2524
2625
- name: Restore Dependencies
2726
run: dotnet restore src

src/Markdown.ColorCode.CSharpToColoredHtml/Internal/CSharpToColoredHtmlFormatter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System.Diagnostics.CodeAnalysis;
22
using ColorCode.Common;
3+
using CsharpToColouredHTML.Core.Emitters.HTML;
34

45
namespace Markdown.ColorCode.CSharpToColoredHtml.Internal;
56

src/Markdown.ColorCode.CSharpToColoredHtml/Internal/HtmlFormatterFactoryWithCSharpToColoredHtml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Diagnostics.CodeAnalysis;
2+
using CsharpToColouredHTML.Core.Emitters.HTML;
23

34
namespace Markdown.ColorCode.CSharpToColoredHtml.Internal;
45

src/Markdown.ColorCode.CSharpToColoredHtml/Markdown.ColorCode.CSharpToColoredHtml.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
@@ -46,7 +46,7 @@
4646

4747
<ItemGroup>
4848
<PackageReference Include="ColorCode.Core" Version="2.0.15" />
49-
<PackageReference Include="CsharpToColouredHTML.Core" Version="1.0.44" />
49+
<PackageReference Include="CsharpToColouredHTML.Core" Version="3.0.2" />
5050
</ItemGroup>
5151

5252
<ItemGroup>

src/Markdown.ColorCode.CSharpToColoredHtml/MarkdownPipelineBuilderExtensions.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace Markdown.ColorCode.CSharpToColoredHtml;
1+
using CsharpToColouredHTML.Core.Emitters.HTML;
2+
3+
namespace Markdown.ColorCode.CSharpToColoredHtml;
24

35
/// <summary>
46
/// Extensions for adding ColorCode code colorization to the Markdig <see cref="MarkdownPipelineBuilder"/>.
@@ -24,7 +26,7 @@ public static MarkdownPipelineBuilder UseColorCodeWithCSharpToColoredHtml(
2426
string? defaultLanguageId = null)
2527
{
2628
var languageExtractor = new LanguageExtractor(
27-
additionalLanguages ?? Enumerable.Empty<ILanguage>(),
29+
additionalLanguages ?? [],
2830
defaultLanguageId ?? string.Empty
2931
);
3032

src/Markdown.ColorCode/AssemblyInfo.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
global using ColorCode;
22
global using ColorCode.Styling;
33
global using Markdig;
4-
global using Markdig.Helpers;
54
global using Markdig.Parsers;
65
global using Markdig.Renderers;
76
global using Markdig.Renderers.Html;

0 commit comments

Comments
 (0)