Skip to content

Commit

Permalink
Merge pull request #812 from sys27/feature/upgrade-dotnet-9
Browse files Browse the repository at this point in the history
Upgrade to .NET 9.
  • Loading branch information
sys27 authored Nov 13, 2024
2 parents a18b260 + 138b86c commit b23d942
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 27 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,23 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
include:
- language: csharp
build-mode: none

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Setup .NET Core SDK
uses: actions/[email protected]
with:
dotnet-version: "8.0.x"

- run: |
dotnet restore xFunc.sln
dotnet build -c Release xFunc.sln
build-mode: ${{ matrix.build-mode }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
6 changes: 3 additions & 3 deletions CI/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:

steps:
- task: UseDotNet@2
displayName: 'Install .NET 8'
displayName: 'Install .NET 9'
inputs:
packageType: 'sdk'
version: '8.0.x'
version: '9.0.x'

- task: DotNetCoreCLI@2
displayName: 'dotnet restore'
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:

- task: PublishPipelineArtifact@1
inputs:
path: xFunc.Maths/bin/Release/net6.0
path: xFunc.Maths/bin/Release/net8.0
artifact: xFunc.Maths

- task: PublishPipelineArtifact@1
Expand Down
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<PackageVersion Include="NUnit.Analyzers" Version="4.3.0" />
<PackageVersion Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.556" />
<PackageVersion Include="System.Collections.Immutable" Version="8.0.0" />
<PackageVersion Include="System.Collections.Immutable" Version="9.0.0" />
<PackageVersion Include="CommandLineParser" Version="2.9.1" />
<PackageVersion Include="BenchmarkDotNet" Version="0.14.0" />
<PackageVersion Include="coverlet.msbuild" Version="6.0.2" />
Expand Down
4 changes: 2 additions & 2 deletions xFunc.Benchmark/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public static void Main(string[] args)
.Run(args,
ManualConfig.Create(DefaultConfig.Instance)
.AddJob(Job.MediumRun
.WithToolchain(CsProjCoreToolchain.NetCoreApp80))
.WithToolchain(CsProjCoreToolchain.NetCoreApp90))
.AddDiagnoser(MemoryDiagnoser.Default)
.StopOnFirstError());
}
}
}
4 changes: 2 additions & 2 deletions xFunc.Benchmark/xFunc.Benchmark.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<LangVersion>latest</LangVersion>
<IsPackable>false</IsPackable>
<ImplicitUsings>enable</ImplicitUsings>
Expand All @@ -27,4 +27,4 @@
<ProjectReference Include="..\xFunc.Maths\xFunc.Maths.csproj" />
</ItemGroup>

</Project>
</Project>
4 changes: 2 additions & 2 deletions xFunc.Cli/xFunc.Cli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<PackAsTool>true</PackAsTool>
<ToolCommandName>xfunc</ToolCommandName>
Expand Down Expand Up @@ -63,4 +63,4 @@ https://sys27.github.io/xFunc/articles/breaking-changes.html</PackageReleaseNote
<None Include="..\README.md" Pack="true" PackagePath="" />
</ItemGroup>

</Project>
</Project>
4 changes: 2 additions & 2 deletions xFunc.Maths/xFunc.Maths.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<RootNamespace>xFunc.Maths</RootNamespace>
<PackageId>xFunc.Maths</PackageId>
Expand Down Expand Up @@ -111,4 +111,4 @@ https://sys27.github.io/xFunc/articles/breaking-changes.html</PackageReleaseNote
<LastGenOutput>Resource.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
</Project>
</Project>
4 changes: 2 additions & 2 deletions xFunc.Tests/xFunc.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<LangVersion>latest</LangVersion>
<IsPackable>false</IsPackable>
<RootNamespace>xFunc.Tests</RootNamespace>
Expand Down Expand Up @@ -67,4 +67,4 @@
<ItemGroup>
<ProjectReference Include="..\xFunc.Maths\xFunc.Maths.csproj" />
</ItemGroup>
</Project>
</Project>

0 comments on commit b23d942

Please sign in to comment.