-
Notifications
You must be signed in to change notification settings - Fork 5
Update target frameworks and package references for improved compatibility #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1a56dce
e285bc4
956ba10
ccc0194
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #if NETFRAMEWORK | ||
| global using System.Net.Http; | ||
| #endif |
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -7,10 +7,26 @@ | |||||||||||
| <Description>The core definition library for Kook.Net.</Description> | ||||||||||||
| </PropertyGroup> | ||||||||||||
| <ItemGroup> | ||||||||||||
| </ItemGroup> | ||||||||||||
| <ItemGroup Condition="'$(TargetFramework)' == 'net462'"> | ||||||||||||
| <PackageReference Include="System.Collections.Immutable" /> | ||||||||||||
| <PackageReference Include="System.Linq.Async" /> | ||||||||||||
| <PackageReference Include="System.Text.Json" /> | ||||||||||||
| </ItemGroup> | ||||||||||||
| <ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'"> | ||||||||||||
| <PackageReference Include="System.Collections.Immutable" /> | ||||||||||||
| <PackageReference Include="System.Linq.Async" /> | ||||||||||||
| <PackageReference Include="System.Text.Json" /> | ||||||||||||
| </ItemGroup> | ||||||||||||
| <ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'"> | ||||||||||||
| <PackageReference Include="System.Collections.Immutable" /> | ||||||||||||
| <PackageReference Include="System.Linq.Async" /> | ||||||||||||
| <PackageReference Include="System.Text.Json" /> | ||||||||||||
| </ItemGroup> | ||||||||||||
| <ItemGroup Condition=" !$(TargetFramework.StartsWith('net10.0')) "> | ||||||||||||
| <ItemGroup Condition="'$(TargetFramework)' == 'net8.0'"> | ||||||||||||
| <PackageReference Include="System.Linq.Async" /> | ||||||||||||
| </ItemGroup> | ||||||||||||
| <ItemGroup Condition="'$(TargetFramework)' == 'net9.0'"> | ||||||||||||
| <PackageReference Include="System.Linq.Async" /> | ||||||||||||
| </ItemGroup> | ||||||||||||
|
||||||||||||
| </ItemGroup> | |
| </ItemGroup> | |
| <ItemGroup Condition="'$(TargetFramework)' == 'net10.0'"> | |
| <PackageReference Include="System.Linq.Async" /> | |
| </ItemGroup> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,4 @@ | ||
| using System.Diagnostics.CodeAnalysis; | ||
| #if NET462 | ||
| using System.Net.Http; | ||
| #endif | ||
|
|
||
| namespace Kook.Net; | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.