Skip to content

Commit ad3650d

Browse files
committed
Fix compile error on B2SServerPluginInterface
1 parent 78a941c commit ad3650d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/b2s-backglass.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ jobs:
2525
with:
2626
repository: DirectOutput/B2SServerPluginInterface
2727
path: B2SServerPluginInterface
28+
# Since the file is in the DirectOutput repository, we try to patch it here
29+
- name: Patch B2SServerPluginInterface.csproj to use .NET Framework 4.8
30+
shell: pwsh
31+
run: |
32+
$csproj = "B2SServerPluginInterface/B2SServerPluginInterface/B2SServerPluginInterface.csproj"
33+
(Get-Content $csproj) -replace '<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>', '<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>' | Set-Content $csproj
34+
$docProj = "B2SServerPluginInterface/Documentation/Documentation.csproj"
35+
(Get-Content $docProj) -replace '<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>', '<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>' | Set-Content $docProj
36+
(Get-Content $docProj) -replace '<TargetFrameworkProfile>Client</TargetFrameworkProfile>', '' | Set-Content $docProj
37+
2838
- id: version
2939
name: Update AssemblyInformationalVersion
3040
run: |

0 commit comments

Comments
 (0)