Skip to content

Commit 4cbda2e

Browse files
committed
Merge branch 'main' into 1.2
2 parents 5da93f5 + 25c5ef0 commit 4cbda2e

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push, pull_request]
44

55
env:
66
PLUGIN_NAME: "CS2Interface"
7-
DOTNET_SDK_VERSION: 9.0
7+
DOTNET_SDK_VERSION: 10.0
88

99
jobs:
1010
publish:

ArchiSteamFarm

Submodule ArchiSteamFarm updated 76 files

CS2Interface/CS2Interface.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
<AssemblyVersion>1.2.0.0</AssemblyVersion>
66
<Nullable>enable</Nullable>
77
<LangVersion>latest</LangVersion>
8-
<TargetFramework>net9.0</TargetFramework>
8+
<TargetFramework>net10.0</TargetFramework>
99
<Deterministic>true</Deterministic>
1010
<CoreCompileDependsOn>PrepareResources;$(CompileDependsOn)</CoreCompileDependsOn>
1111
</PropertyGroup>
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.CodeAnalysis.ResxSourceGenerator" Version="3.11.0-beta1.24508.2" PrivateAssets="all" />
15-
<PackageReference Include="System.Composition.AttributedModel" Version="9.0.9" />
15+
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.0" IncludeAssets="compile" />
16+
<PackageReference Include="System.Composition.AttributedModel" Version="10.0.0" />
1617
</ItemGroup>
1718

1819
<ItemGroup>

CS2Interface/GameData/GameDataResource.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ internal GameDataResource(string url) {
3333
Dictionary<string, string> kvp = new();
3434
using (Stream response = await httpClient.GetStreamAsync(Url).ConfigureAwait(false)) {
3535
using (StreamReader sr = new StreamReader(response)) {
36-
// https://github.com/dotnet/runtime/issues/68983
37-
while (!sr.EndOfStream) {
38-
string[]? kv = sr.ReadLine()?.Split("=");
39-
if (kv?.Length == 2) {
36+
string? line;
37+
while ((line = await sr.ReadLineAsync().ConfigureAwait(false)) != null) {
38+
string[] kv = line.Split("=");
39+
if (kv.Length == 2) {
4040
kvp[kv[0]] = kv[1];
4141
}
4242
}

build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if exist out rmdir /Q /S out
2121

2222
rem release generic version
2323

24-
dotnet publish CS2Interface -c "Release" -f "net9.0" -o "out/generic" "/p:LinkDuringPublish=false"
24+
dotnet publish CS2Interface -c "Release" -f "net10.0" -o "out/generic" "/p:LinkDuringPublish=false"
2525
mkdir .\out\%CurrDirName%
2626
copy .\out\generic\%CurrDirName%.dll .\out\%CurrDirName%
2727
rem comment section below (downto :zip label) if you don't want to include documentation

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ fi
4545
## release generic version
4646
dotnet restore
4747
sync
48-
dotnet publish CS2Interface -c "Release" -f net9.0 -o "out/generic" "/p:LinkDuringPublish=false"
48+
dotnet publish CS2Interface -c "Release" -f net10.0 -o "out/generic" "/p:LinkDuringPublish=false"
4949
mkdir ./out/$plugin_name
5050
cp ./out/generic/$plugin_name.dll ./out/$plugin_name
5151
( cd ./out/generic ; cp --parents ./*/$plugin_name.resources.dll ../../out/$plugin_name || : )

0 commit comments

Comments
 (0)