Skip to content

Commit 7650129

Browse files
Update to .NET 9.0 including project files and CI/CD workflows
Co-authored-by: mitchelsellers <5659113+mitchelsellers@users.noreply.github.com>
1 parent b543053 commit 7650129

5 files changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/ci-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Ensure .NET Installed
2222
uses: actions/setup-dotnet@v5
2323
with:
24-
dotnet-version: 6.0.x
24+
dotnet-version: 9.0.x
2525

2626
- name: Install GitVersion
2727
uses: gittools/actions/gitversion/setup@v3.2.1
@@ -53,6 +53,10 @@ jobs:
5353
with:
5454
java-version: 17
5555
distribution: zulu
56+
- name: Ensure .NET Installed
57+
uses: actions/setup-dotnet@v5
58+
with:
59+
dotnet-version: 9.0.x
5660
- uses: actions/checkout@v5
5761
with:
5862
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

.github/workflows/release-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Ensure .NET Installed
2121
uses: actions/setup-dotnet@v5
2222
with:
23-
dotnet-version: 6.0.x
23+
dotnet-version: 9.0.x
2424

2525
- name: Install GitVersion
2626
uses: gittools/actions/gitversion/setup@v3.2.1

samples/NetCore.Utilities.SpreadsheetExample/NetCore.Utilities.SpreadsheetExample.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>
99
<PackageReference Include="DocumentFOrmat.OpenXml" Version="2.16.0" />
10-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
10+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
1111
</ItemGroup>
1212

1313
<ItemGroup>
1414
<Reference Include="NetCore.Utilities.Spreadsheet">
15-
<HintPath>..\..\src\NetCore.Utilities.Spreadsheet\bin\Debug\net6.0\NetCore.Utilities.Spreadsheet.dll</HintPath>
15+
<HintPath>..\..\src\NetCore.Utilities.Spreadsheet\bin\Debug\net9.0\NetCore.Utilities.Spreadsheet.dll</HintPath>
1616
</Reference>
1717
</ItemGroup>
1818

src/NetCore.Utilities.Spreadsheet.Tests/NetCore.Utilities.Spreadsheet.Tests.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>net9.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
<RootNamespace>ICG.NetCore.Utilities.Spreadsheet.Tests</RootNamespace>
77
</PropertyGroup>

src/NetCore.Utilities.Spreadsheet/NetCore.Utilities.Spreadsheet.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-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<RootNamespace>ICG.NetCore.Utilities.Spreadsheet</RootNamespace>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
77
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
@@ -35,7 +35,7 @@
3535

3636
<ItemGroup>
3737
<PackageReference Include="DocumentFormat.OpenXml" Version="2.16.0" />
38-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
38+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
3939
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
4040
<PrivateAssets>all</PrivateAssets>
4141
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

0 commit comments

Comments
 (0)