Skip to content

Commit

Permalink
feat: Add support for .NET 8.0 + Update package references
Browse files Browse the repository at this point in the history
- Updated the .NET version from 6.0.x to 8.0.x in the workflow file.
- Removed the Markdig package reference from the test project.
- Updated the Markdig package reference in the main project from version 0.32.0 to 0.36.2.
- Changed the target frameworks in the main project to net6.0 and net8.0.

These changes ensure compatibility with newer versions of .NET and update dependencies for improved functionality and security.
  • Loading branch information
SakuraIsayeki committed Mar 24, 2024
1 parent 2819d87 commit 6d6edc2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.

- name: Setup .NET 6.0
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
dotnet-version: '8.0.x'

- uses: dotnet/[email protected]
id: nbgv
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Markdig" Version="0.32.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0"/>
<PackageReference Include="NSubstitute" Version="5.0.0" />
<PackageReference Include="NSubstitute.Analyzers.CSharp" Version="1.0.16">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
Expand All @@ -18,13 +18,13 @@
<RepositoryType>git</RepositoryType>

<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageLicenseExpression>ISC</PackageLicenseExpression>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ColorCode.HTML" Version="2.0.15" />
<PackageReference Include="Markdig" Version="0.32.0" />
<PackageReference Include="Markdig" Version="0.36.2" />
</ItemGroup>

</Project>

0 comments on commit 6d6edc2

Please sign in to comment.