Skip to content

Commit

Permalink
Updated to .NET 9 (#5716)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyyrylainen authored Nov 30, 2024
1 parent 745b7dc commit 7057ed0
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions CIConfiguration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 1

jobs:
build:
image: thrive/godot-ci:v25
image: thrive/godot-ci:v26
cache:
loadFrom:
- v11-{Branch}-build
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
name: Upload devbuilds
command: dotnet run --project Scripts -- upload
jetbrains:
image: thrive/godot-ci:v25
image: thrive/godot-ci:v26
cache:
loadFrom:
- v9-{Branch}-jetbrains
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
rm -f cleanup_diff.patch
fi
format_test:
image: thrive/godot-ci:v25
image: thrive/godot-ci:v26
cache:
loadFrom:
- v9-{Branch}-format
Expand Down
2 changes: 1 addition & 1 deletion Scripts/Scripts.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>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<Authors>Revolutionary Games Studio</Authors>
Expand Down
3 changes: 2 additions & 1 deletion Thrive.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Godot.NET.Sdk/4.3.0">
<PropertyGroup>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework Condition=" '$(GodotTargetPlatform)' == 'android' ">net7.0</TargetFramework>
<TargetFramework Condition=" '$(GodotTargetPlatform)' == 'ios' ">net8.0</TargetFramework>
<EnableDynamicLoading>true</EnableDynamicLoading>
Expand Down Expand Up @@ -56,6 +56,7 @@
<PackageReference Include="System.Numerics.Vectors" Version="4.6.0" />
<PackageReference Include="Nito.Collections.Deque" Version="1.2.1" />
<PackageReference Include="Lib.Harmony" Version="2.3.3" />
<PackageReference Include="System.Text.Json" Version="9.0.0" />
<PackageReference Include="XoshiroPRNG.Net" Version="1.6.0" />
<PackageReference Include="YamlDotNet" Version="16.2.0" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556" PrivateAssets="all" />
Expand Down
2 changes: 1 addition & 1 deletion ThriveScriptsShared/ThriveScriptsShared.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>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Authors>Revolutionary Games Studio</Authors>
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"rollForward": "latestMinor",
"version": "8.0.0"
"version": "9.0.0"
}
}
4 changes: 2 additions & 2 deletions podman/ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM fedora:40
FROM fedora:41

RUN dnf install -y --setopt=deltarpm=false git git-lfs unzip wget dotnet-sdk-8.0 \
RUN dnf install -y --setopt=deltarpm=false git git-lfs unzip wget dotnet-sdk-9.0 \
gettext p7zip fontconfig && dnf clean all
RUN git lfs install

Expand Down
3 changes: 1 addition & 2 deletions src/auto-evo/AutoEvoRun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using AutoEvo;
using Godot;
using Xoshiro.PRNG64;
using Thread = System.Threading.Thread;

/// <summary>
/// A single run of the auto-evo system happening in a background thread
Expand Down Expand Up @@ -108,7 +107,7 @@ public float CompletionFraction
}
}

public int CompleteSteps => Thread.VolatileRead(ref completeSteps);
public int CompleteSteps => Volatile.Read(ref completeSteps);

public bool WasSuccessful => Finished && !Aborted;

Expand Down
2 changes: 1 addition & 1 deletion test/code_benchmarks/CodeBenchmark.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>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion test/code_tests/ThriveTest.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>
<Nullable>enable</Nullable>
<LangVersion>12.0</LangVersion>
<IsPackable>false</IsPackable>
Expand Down
2 changes: 1 addition & 1 deletion third_party/ThirdParty.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<LangVersion>9.0</LangVersion>
<Deterministic>true</Deterministic>
</PropertyGroup>
Expand Down

0 comments on commit 7057ed0

Please sign in to comment.