Skip to content

Commit 2aac9d1

Browse files
committed
feat: add .NET 9 support (And drop .NET 6 support)
1 parent 4d5949a commit 2aac9d1

File tree

23 files changed

+26
-73
lines changed

23 files changed

+26
-73
lines changed

.github/actions/build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ runs:
1010
- uses: actions/setup-dotnet@v4
1111
with:
1212
dotnet-version: |
13-
8.x
13+
9.x
1414
1515
- run: npm install
1616
shell: bash

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ jobs:
3434
- run: dotnet test -c Release -f net8.0 --no-build --collect:"XPlat Code Coverage" --consoleLoggerParameters:"Summary;Verbosity=Minimal"
3535
id: test-net80
3636

37-
- run: dotnet test -c Release -f net6.0 --no-build --collect:"XPlat Code Coverage" --consoleLoggerParameters:"Summary;Verbosity=Minimal"
37+
- run: dotnet test -c Release -f net9.0 --no-build --collect:"XPlat Code Coverage" --consoleLoggerParameters:"Summary;Verbosity=Minimal"
3838
if: matrix.os == 'ubuntu-latest'
39-
id: test-net60
39+
id: test-net90
4040

4141
- run: npm i -g @percy/cli
4242
if: matrix.os == 'ubuntu-latest'
@@ -74,7 +74,7 @@ jobs:
7474
path: /tmp/coredump*
7575

7676
- name: Report failed tests
77-
if: ${{ failure() && (steps.test-net80.outcome == 'failure' || steps.test-net60.outcome == 'failure') }}
77+
if: ${{ failure() && (steps.test-net80.outcome == 'failure' || steps.test-net90.outcome == 'failure') }}
7878
uses: ./.github/actions/report-failed-tests
7979

8080
publish-docs:

.github/workflows/nightly.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ jobs:
1313
permissions:
1414
packages: write
1515
steps:
16-
- uses: actions/setup-dotnet@v4
17-
with:
18-
dotnet-version: |
19-
9.x
20-
2116
- uses: actions/checkout@v4
2217
with:
2318
fetch-depth: 0

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
33
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
4-
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
55
<TargetFrameworks Condition="'$(DOCFX_PREVIEW_BUILD)' == 'true'">net8.0;net9.0</TargetFrameworks>
66
<LangVersion>Preview</LangVersion>
77
<ImplicitUsings>enable</ImplicitUsings>

Directory.Packages.props

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,7 @@
2828
<PackageVersion Include="YamlDotNet" Version="15.3.0" />
2929
</ItemGroup>
3030

31-
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
32-
<!-- "17.3.2" is the latest compatible version for .NET 6 -->
33-
<PackageVersion Include="Microsoft.Build" Version="[17.3.2]" />
34-
<PackageVersion Include="Microsoft.Build.Locator" Version="1.7.8" />
35-
<PackageVersion Include="Microsoft.CodeAnalysis" Version="[4.8.0]" />
36-
<PackageVersion Include="Microsoft.CodeAnalysis.Common" Version="[4.8.0]" />
37-
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="[4.8.0]" />
38-
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="[4.8.0]" />
39-
<PackageVersion Include="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Version="[4.8.0]" />
40-
<PackageVersion Include="Microsoft.CodeAnalysis.VisualBasic" Version="[4.8.0]" />
41-
<PackageVersion Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="[4.8.0]" />
42-
<PackageVersion Include="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="[4.8.0]" />
43-
</ItemGroup>
44-
45-
<ItemGroup Condition="'$(TargetFramework)' != 'net6.0'">
31+
<ItemGroup>
4632
<PackageVersion Include="Microsoft.CodeAnalysis" Version="4.11.0" />
4733
<PackageVersion Include="Microsoft.CodeAnalysis.Common" Version="4.11.0" />
4834
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.11.0" />

docs/docs/dotnet-api-docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ If your project targets multiple target frameworks, docfx internally builds each
8787
}],
8888
"dest": "api",
8989
"properties": {
90-
"TargetFramework": "net6.0"
90+
"TargetFramework": "net8.0"
9191
}
9292
},
9393
}

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ In this section we will build a simple documentation site on your local machine.
88

99
> Prerequisites
1010
> - Familiarity with the command line
11-
> - Install [.NET SDK](https://dotnet.microsoft.com/en-us/download) 6.0 or higher
11+
> - Install [.NET SDK](https://dotnet.microsoft.com/en-us/download) 8.0 or higher
1212
1313
Make sure you have [.NET SDK](https://dotnet.microsoft.com/en-us/download) installed, then open a terminal and enter the following command to install the latest docfx:
1414

docs/tutorial/howto_build_your_own_type_of_documentation_with_custom_plug-in.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Goal and limitation
1515

1616
Preparation
1717
-----------
18-
1. Create a new C# class library targeting `net6.0` or later.
18+
1. Create a new C# class library targeting `net8.0` or later.
1919

2020
2. Add NuGet package reference to `System.Composition`, `Docfx.Plugins` and `Docfx.Common`.
2121

samples/extensions/build/build.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net7.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
</PropertyGroup>

samples/seed/dotnet/project/Project.Core/BuildFromProject.Core.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<LangVersion>latest</LangVersion>
66
<Nullable>enable</Nullable>
77
<ImplicitUsings>enable</ImplicitUsings>

0 commit comments

Comments
 (0)