Skip to content

Commit d7224d3

Browse files
AoshiWAoshiW
authored andcommitted
.NET 10; migrate to slnx
1 parent cd636ab commit d7224d3

File tree

8 files changed

+23
-78
lines changed

8 files changed

+23
-78
lines changed

.github/workflows/preview-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Build TwitchLib.Client
2525
run: dotnet build -c Release --no-restore
2626
- name: Pack TwitchLib.Client
27-
run: dotnet pack TwitchLib.Client.sln -v normal -c Release --no-build --version-suffix "preview.${{ github.run_number }}.${{ steps.short-sha.outputs.sha }}"
27+
run: dotnet pack -v normal -c Release --no-build --version-suffix "preview.${{ github.run_number }}.${{ steps.short-sha.outputs.sha }}"
2828
# Get a short-lived NuGet API key
2929
- name: NuGet login (OIDC → temp API key)
3030
uses: NuGet/login@v1

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Build TwitchLib.Client
2121
run: dotnet build -c Release --no-restore
2222
- name: Pack TwitchLib.Client
23-
run: dotnet pack TwitchLib.Client.sln -v normal -c Release --no-build
23+
run: dotnet pack -v normal -c Release --no-build
2424
- name: Push to Nuget
2525
run: dotnet nuget push "./artifacts/package/release/*.nupkg" -k ${{ secrets.API_NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json
2626
- name: Send Discord Notification

TwitchLib.Client.Enums/TwitchLib.Client.Enums.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0;net9.0;net10.0</TargetFrameworks>
55
<Description>Project containing all of the enums used in TwitchLib.Client.</Description>
66
</PropertyGroup>
77

TwitchLib.Client.Example/TwitchLib.Client.Example.csproj

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

1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.10" />
12+
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="10.0.0" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

TwitchLib.Client.Models/TwitchLib.Client.Models.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0;net9.0;net10.0</TargetFrameworks>
55
<Description>Project contains all of the models used in TwitchLib.Client.</Description>
66
</PropertyGroup>
77

@@ -20,7 +20,7 @@
2020
</ItemGroup>
2121

2222
<ItemGroup>
23-
<PackageReference Include="System.Memory" Version="4.5.5" Condition="$(TargetFramework) == 'netstandard2.0'" />
23+
<PackageReference Include="System.Memory" Version="4.6.3" Condition="$(TargetFramework) == 'netstandard2.0'" />
2424
</ItemGroup>
2525

2626
</Project>

TwitchLib.Client.sln

Lines changed: 0 additions & 70 deletions
This file was deleted.

TwitchLib.Client.slnx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<Solution>
2+
<Folder Name="/Solution Items/">
3+
<File Path="Directory.Build.props" />
4+
</Folder>
5+
<Folder Name="/src/">
6+
<Project Path="TwitchLib.Client.Enums/TwitchLib.Client.Enums.csproj" />
7+
<Project Path="TwitchLib.Client.Models/TwitchLib.Client.Models.csproj" />
8+
<Project Path="TwitchLib.Client/TwitchLib.Client.csproj" />
9+
</Folder>
10+
<Folder Name="/Tests/">
11+
<Project Path="TwitchLib.Client.Test/TwitchLib.Client.Test.csproj" />
12+
</Folder>
13+
<Project Path="TwitchLib.Client.Benchmark/TwitchLib.Client.Benchmark.csproj" />
14+
<Project Path="TwitchLib.Client.Example/TwitchLib.Client.Example.csproj" />
15+
</Solution>

TwitchLib.Client/TwitchLib.Client.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0;net9.0;net10.0</TargetFrameworks>
55
<Description>Client component of TwitchLib. This component allows you to access Twitch chat and whispers, as well as the events that are sent over this connection.</Description>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.10" />
9+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.0" />
1010
<PackageReference Include="TwitchLib.Communication" Version="2.0.1" />
1111
</ItemGroup>
1212

0 commit comments

Comments
 (0)