Skip to content

Commit

Permalink
Move to .NET 9 (#1108)
Browse files Browse the repository at this point in the history
* Bump .NET version and packages
* ⚡ Disable DATAS  (#1111)
* ⚡ Disable CET (#1112)
  • Loading branch information
eduherminio authored Nov 13, 2024
1 parent ad7601c commit 9953da0
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false

env:
DOTNET_VERSION: 8.0.x
DOTNET_VERSION: 9.0.x
DOTNET_CLI_TELEMETRY_OPTOUT: 1

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fail-fast: false

env:
DOTNET_VERSION: 8.0.x
DOTNET_VERSION: 9.0.x
DOTNET_CLI_TELEMETRY_OPTOUT: 1

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- cron: '1 0 * * 1' # Mondays at 00:01

env:
DOTNET_VERSION: 8.0.x
DOTNET_VERSION: 9.0.x
PROJECT_NAME: Lynx
DOTNET_CLI_TELEMETRY_OPTOUT: 1

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on-demand-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fail-fast: false

env:
DOTNET_VERSION: 8.0.x
DOTNET_VERSION: 9.0.x
DOTNET_CLI_TELEMETRY_OPTOUT: 1

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/perft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest

env:
DOTNET_VERSION: 8.0.x
DOTNET_VERSION: 9.0.x
DOTNET_CLI_TELEMETRY_OPTOUT: 1

steps:
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
if: github.event.inputs.divide

env:
DOTNET_VERSION: 8.0.x
DOTNET_VERSION: 9.0.x
DOTNET_CLI_TELEMETRY_OPTOUT: 1

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:
required: false

env:
DOTNET_VERSION: 8.0.x
DOTNET_VERSION: 9.0.x
DOTNET_CLI_TELEMETRY_OPTOUT: 1

jobs:
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<LangVersion>preview</LangVersion>
<Nullable>Enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
14 changes: 10 additions & 4 deletions src/Lynx.Cli/Lynx.Cli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<ServerGarbageCollection>true</ServerGarbageCollection>
<EnableConfigurationBindingGenerator>true</EnableConfigurationBindingGenerator>
<!--<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>-->
<InterceptorsPreviewNamespaces>$(InterceptorsPreviewNamespaces);Microsoft.Extensions.Configuration.Binder.SourceGeneration</InterceptorsPreviewNamespaces>
Expand All @@ -15,16 +14,23 @@
<PublishTrimmed>true</PublishTrimmed>
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>

<TieredPGO>true</TieredPGO>
<TieredCompilationQuickJitForLoops>true</TieredCompilationQuickJitForLoops>
<!--In favour of tiered compilation-->
<PublishReadyToRun>false</PublishReadyToRun>

<ServerGarbageCollection>true</ServerGarbageCollection>
<GarbageCollectionAdaptationMode>0</GarbageCollectionAdaptationMode>

<!--https://learn.microsoft.com/en-us/dotnet/core/compatibility/interop/9.0/cet-support-->
<CETCompat>false</CETCompat>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="9.0.0" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.14" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions src/Lynx/Lynx.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

<ItemGroup>
<PackageReference Include="Macross.Json.Extensions" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="8.0.10" />
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="8.0.10" />
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="9.0.0" />
<PackageReference Include="NLog" Version="5.3.4" />
</ItemGroup>

Expand Down

0 comments on commit 9953da0

Please sign in to comment.