Skip to content

Commit 258f505

Browse files
committed
feat: update sample/test to dotnet 9
1 parent 23ec25f commit 258f505

File tree

8 files changed

+8
-21
lines changed

8 files changed

+8
-21
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
99
"ghcr.io/devcontainers/features/dotnet:2": {
1010
"version": "latest",
11-
"additionalVersions": "9.0.100-preview.3.24204.13"
11+
"additionalVersions": "lts"
1212
}
1313
},
1414
"customizations": {

.github/workflows/default.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ jobs:
2626
- name: Setup .NET SDK
2727
uses: actions/setup-dotnet@v4
2828
with:
29-
dotnet-version: |
30-
6.x
31-
7.x
32-
8.x
33-
9.x
29+
dotnet-version: 9.0.x
3430
- name: dotnet info
3531
run: dotnet --info
3632
- name: build

.github/workflows/docfx.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ jobs:
1515
- name: Setup .NET SDK
1616
uses: actions/setup-dotnet@v4
1717
with:
18-
dotnet-version: |
19-
6.0.x
20-
7.0.x
21-
8.0.x
22-
9.0.x
18+
dotnet-version: 9.0.x
2319
- name: install DocFX
2420
run: "dotnet tool install -g docfx"
2521
- name: Build docs

.github/workflows/dotnet-format.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ jobs:
1414
- name: Setup .NET SDK
1515
uses: actions/setup-dotnet@v4
1616
with:
17-
dotnet-version: |
18-
6.0.x
19-
7.0.x
20-
8.0.x
21-
9.0.x
17+
dotnet-version: 9.0.x
2218
- name: build
2319
run: dotnet build
2420
- name: format

perf/WeihanLi.Common.Benchmark/WeihanLi.Common.Benchmark.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<Optimize>true</Optimize>
6-
<TargetFramework>net8.0</TargetFramework>
6+
<TargetFramework>net9.0</TargetFramework>
77
<Benchmark>True</Benchmark>
88
<Nullable>disable</Nullable>
99
</PropertyGroup>
@@ -15,7 +15,6 @@
1515

1616
<ItemGroup>
1717
<ProjectReference Include="..\..\src\WeihanLi.Common\WeihanLi.Common.csproj" />
18-
<ProjectReference Include="..\..\src\WeihanLi.Extensions.Hosting\WeihanLi.Extensions.Hosting.csproj" />
1918
</ItemGroup>
2019

2120
<ItemGroup>

samples/AspNetCoreSample/AspNetCoreSample.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.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

samples/DotNetCoreSample/DotNetCoreSample.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>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

test/WeihanLi.Common.Test/WeihanLi.Common.Test.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>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<IsTestProject>true</IsTestProject>
66
<IsPackable>false</IsPackable>
77
</PropertyGroup>

0 commit comments

Comments
 (0)