Skip to content

Commit cf826c8

Browse files
authored
Update to .NET 9 (#450)
* Update actions projects to .NET 9 * Update additional projects to .NET 9
1 parent 83bb7bb commit cf826c8

File tree

34 files changed

+65
-70
lines changed

34 files changed

+65
-70
lines changed

.github/workflows/build-docs-verifier.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup .NET
1717
uses: actions/setup-dotnet@main
1818
with:
19-
dotnet-version: '8.0.x'
19+
dotnet-version: '9.0.x'
2020
- name: Try get cached dependencies
2121
uses: actions/cache@main
2222
with:

.github/workflows/dotnet-build-validation.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
if: ${{ github.event_name == 'workflow_dispatch' }}
3030
run: |
3131
echo 'Reason: ${{ github.event.inputs.reason }}'
32-
- name: Setup .NET 7.0
32+
- name: Setup .NET 9.0
3333
uses: actions/setup-dotnet@main
3434
with:
35-
dotnet-version: 7.0.x
35+
dotnet-version: 9.0.x
3636

3737
- name: Restore dependencies for .NET docs tools
3838
run: |
@@ -50,10 +50,10 @@ jobs:
5050
steps:
5151
- uses: actions/checkout@main
5252

53-
- name: Setup .NET 7.0
53+
- name: Setup .NET 9.0
5454
uses: actions/setup-dotnet@main
5555
with:
56-
dotnet-version: 7.0.x
56+
dotnet-version: 9.0.x
5757

5858
- name: Run tests
5959
run: |

DotNet.DocsTools/DotNet.DocsTools.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
7-
<AssemblyVersion>2.1.0.0</AssemblyVersion>
8-
<FileVersion>2.1.0.0</FileVersion>
7+
<AssemblyVersion>2.2.0.0</AssemblyVersion>
8+
<FileVersion>2.2.0.0</FileVersion>
99
</PropertyGroup>
1010

1111
<ItemGroup>

DotnetDocsToolsTests/DotnetDocsTools.Tests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<IsPackable>false</IsPackable>

GitHub.RepositoryExplorer.Client/GitHub.RepositoryExplorer.Client.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<UserSecretsId>1e8b5bf8-1a2d-446d-9cd3-48609334c53f</UserSecretsId>
@@ -14,9 +14,9 @@
1414
</ItemGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="Blazor.LocalStorage.WebAssembly" Version="9.0.0" />
17+
<PackageReference Include="Blazor.LocalStorage.WebAssembly" Version="9.0.1" />
1818
<PackageReference Include="ChartJs.Blazor.Fork" Version="2.0.2" />
19-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.11" />
19+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.0" />
2020
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="9.0.0" PrivateAssets="all" />
2121
<PackageReference Include="Microsoft.Extensions.Http" Version="9.0.0" />
2222
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="9.0.0" />

GitHub.RepositoryExplorer.Functions/GitHub.RepositoryExplorer.Functions.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net9.0</TargetFramework>
44
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>

GitHub.RepositoryExplorer.Models/GitHub.RepositoryExplorer.Models.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

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

GitHub.RepositoryExplorer.Services/GitHub.RepositoryExplorer.Services.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<AssemblyVersion>1.1.0.0</AssemblyVersion>

GitHub.RepositoryExplorer.WebApi/GitHub.RepositoryExplorer.WebApi.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net9.0</TargetFramework>
44
<Nullable>enable</Nullable>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<UserSecretsId>7d02fdaa-bfe2-4c8f-aee9-77abea14057c</UserSecretsId>

IssueCloser/IssueCloser.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

RepoMan/RepoMan.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net9.0</TargetFramework>
44
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
55
<OutputType>Exe</OutputType>
66
<ImplicitUsings>enable</ImplicitUsings>
@@ -23,7 +23,7 @@
2323
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
2424
<PackageReference Include="Octokit" Version="13.0.1" />
2525
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
26-
<PackageReference Include="YamlDotNet" Version="16.2.0" />
26+
<PackageReference Include="YamlDotNet" Version="16.2.1" />
2727
<PackageReference Include="JmesPath.Net" Version="1.0.330" />
2828
<PackageReference Include="Markdig" Version="0.38.0" />
2929
</ItemGroup>

RepoManChecker/RepoManCheckerCLI.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<RootNamespace>RepoMan</RootNamespace>
@@ -25,7 +25,7 @@
2525
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
2626
<PackageReference Include="Octokit" Version="13.0.1" />
2727
<PackageReference Include="System.Text.Json" Version="9.0.0" />
28-
<PackageReference Include="YamlDotNet" Version="16.2.0" />
28+
<PackageReference Include="YamlDotNet" Version="16.2.1" />
2929
</ItemGroup>
3030

3131
<ItemGroup>

Sandbox/Sandbox.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

WhatsNew.Cli/WhatsNew.Cli.csproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<OutputType>Exe</OutputType>
@@ -22,8 +22,8 @@
2222
<RepositoryType>git</RepositoryType>
2323
<RepositoryUrl>https://github.com/dotnet/docs-tools</RepositoryUrl>
2424
<Version></Version>
25-
<AssemblyVersion>3.0.0.0</AssemblyVersion>
26-
<FileVersion>3.0.0.0</FileVersion>
25+
<AssemblyVersion>3.1.0.0</AssemblyVersion>
26+
<FileVersion>3.1.0.0</FileVersion>
2727
</PropertyGroup>
2828

2929
<ItemGroup>
@@ -33,7 +33,7 @@
3333

3434
<ItemGroup>
3535
<PackageReference Include="System.CommandLine.DragonFruit" Version="0.4.0-alpha.22272.1" />
36-
<PackageReference Include="YamlDotNet" Version="16.2.0" />
36+
<PackageReference Include="YamlDotNet" Version="16.2.1" />
3737
</ItemGroup>
3838

3939
<ItemGroup>

WhatsNew.Infrastructure.Tests/WhatsNew.Infrastructure.Tests.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<IsPackable>false</IsPackable>
8-
<AssemblyVersion>2.0.0.0</AssemblyVersion>
9-
<FileVersion>2.0.0.0</FileVersion>
8+
<AssemblyVersion>2.1.0.0</AssemblyVersion>
9+
<FileVersion>2.1.0.0</FileVersion>
1010
</PropertyGroup>
1111

1212
<ItemGroup>

WhatsNew.Infrastructure/WhatsNew.Infrastructure.csproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
8-
<AssemblyVersion>3.0.0.0</AssemblyVersion>
9-
<FileVersion>3.0.0.0</FileVersion>
8+
<AssemblyVersion>3.1.0.0</AssemblyVersion>
9+
<FileVersion>3.1.0.0</FileVersion>
1010
</PropertyGroup>
1111

1212
<ItemGroup>
@@ -18,7 +18,7 @@
1818
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="9.0.0" />
1919
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="9.0.0" />
2020
<PackageReference Include="Newtonsoft.Json.Schema" Version="4.0.1" />
21-
<PackageReference Include="YamlDotNet" Version="16.2.0" />
21+
<PackageReference Include="YamlDotNet" Version="16.2.1" />
2222
</ItemGroup>
2323

2424
<ItemGroup>

XmlDocConflictResolver/XmlDocConflictResolver.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
</PropertyGroup>
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:8.0 as build-env
1+
FROM mcr.microsoft.com/dotnet/sdk:9.0 as build-env
22
# Copy everything and publish the release (publish implicitly restores and builds)
33
WORKDIR /app
44
COPY . ./
55
RUN dotnet publish "dependabot-bot.csproj" -c Release -o out --no-self-contained
66

77
# Relayer the .NET SDK, anew with the build output
8-
FROM mcr.microsoft.com/dotnet/sdk:8.0
8+
FROM mcr.microsoft.com/dotnet/sdk:9.0
99
COPY --from=build-env /app/out .
1010
ENTRYPOINT [ "dotnet", "/dependabot-bot.dll" ]

actions/dependabot-bot/src/dependabot-bot/dependabot-bot.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<Description>A .NET tool for generating dependabot config files for .NET.</Description>
@@ -22,7 +22,7 @@
2222

2323
<ItemGroup>
2424
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
25-
<PackageReference Include="Pathological.ProjectSystem" Version="8.0.4" />
25+
<PackageReference Include="Pathological.ProjectSystem" Version="9.0.0" />
2626
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
2727
</ItemGroup>
2828

actions/docs-verifier/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
1+
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
22
WORKDIR /app
33
COPY . ./
44
RUN dotnet publish ./src/ActionRunner/ActionRunner.csproj -c Release -o out --no-self-contained
55

66
# Build the runtime image
7-
FROM mcr.microsoft.com/dotnet/runtime:8.0
7+
FROM mcr.microsoft.com/dotnet/runtime:9.0
88
COPY --from=build /app/out .
99

1010
ENTRYPOINT [ "dotnet", "/ActionRunner.dll" ]

actions/docs-verifier/src/ActionRunner/ActionRunner.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

actions/docs-verifier/src/BuildVerifier.IO.Abstractions/BuildVerifier.IO.Abstractions.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

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

actions/docs-verifier/src/GitHub/GitHub.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

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

actions/docs-verifier/src/MarkdownLinksVerifier/MarkdownLinksVerifier.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

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

actions/docs-verifier/src/RedirectionVerifier/RedirectionVerifier.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

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

actions/docs-verifier/tests/GitHub.UnitTests/GitHub.UnitTests.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

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

actions/docs-verifier/tests/MarkdownLinksVerifier/LinkValidatorTests/OnlineLinkValidatorTests.cs

-5
This file was deleted.

actions/docs-verifier/tests/MarkdownLinksVerifier/MarkdownLinksVerifier.UnitTests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<IsPackable>false</IsPackable>

actions/sequester/ImportIssues/ImportIssues.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
9-
<AssemblyVersion>2.1.0.0</AssemblyVersion>
10-
<FileVersion>2.1.0.0</FileVersion>
9+
<AssemblyVersion>2.2.0.0</AssemblyVersion>
10+
<FileVersion>2.2.0.0</FileVersion>
1111
</PropertyGroup>
1212

1313
<ItemGroup>

actions/sequester/Quest2GitHub.Tests/Quest2GitHub.Tests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

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

0 commit comments

Comments
 (0)