Skip to content

Commit f1cf8eb

Browse files
committed
Merge pull request godotengine#100506 from akien-mga/dotnet-8.0-fix-GodotSharp-build
.NET: Downgrade Microsoft.CodeAnalysis.CSharp to 4.8.0 for compat with SDK 8.0.1xy
2 parents 7170a41 + 4047e4b commit f1cf8eb

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/linux_builds.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,18 @@ jobs:
140140
python-version: 3.8
141141
scons-version: 4.0
142142

143+
- name: Force remove preinstalled .NET SDKs
144+
if: matrix.build-mono
145+
run: |
146+
sudo rm -rf /usr/share/dotnet/sdk/*
147+
148+
- name: Setup older .NET SDK as baseline
149+
if: matrix.build-mono
150+
uses: actions/setup-dotnet@v4
151+
with:
152+
# Targeting the oldest version we want to support to ensure it still builds.
153+
dotnet-version: '8.0.100'
154+
143155
- name: Compilation
144156
uses: ./.github/actions/godot-build
145157
with:
@@ -163,6 +175,7 @@ jobs:
163175
- name: Build .NET solutions
164176
if: matrix.build-mono
165177
run: |
178+
dotnet --info
166179
./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=linuxbsd
167180
168181
- name: Prepare artifact

modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/Godot.SourceGenerators.Internal.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.9.2" PrivateAssets="all" />
11+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0" PrivateAssets="all" />
1212
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" PrivateAssets="all" />
1313
</ItemGroup>
1414

0 commit comments

Comments
 (0)