Skip to content

Commit 5f963ea

Browse files
committed
🔟 Upgrade to .NET 10
Migrate solution file to SLNX.
1 parent 6045082 commit 5f963ea

13 files changed

+23
-48
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2
22
updates:
33
- package-ecosystem: nuget
4-
directory: "src/OpenOnlineConfig"
4+
directory: "/"
55
schedule:
66
interval: daily
77

.github/workflows/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ jobs:
1616
build:
1717
name: Build & Test
1818
runs-on: ubuntu-latest
19-
defaults:
20-
run:
21-
working-directory: src/OpenOnlineConfig
2219

2320
steps:
2421
- uses: actions/checkout@v6

.github/workflows/publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ jobs:
99
publish_upload:
1010
name: Publish NuGet Package
1111
runs-on: ubuntu-latest
12-
defaults:
13-
run:
14-
working-directory: src/OpenOnlineConfig
1512

1613
steps:
1714
- uses: actions/checkout@v6
@@ -20,4 +17,4 @@ jobs:
2017
- name: Pack and upload NuGet package
2118
run: |
2219
dotnet pack OpenOnlineConfig -c Release
23-
dotnet nuget push OpenOnlineConfig/bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate
20+
dotnet nuget push src/OpenOnlineConfig/bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate

OpenOnlineConfig.slnx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<Solution>
2+
<Folder Name="/Solution Items/">
3+
<File Path=".gitignore" />
4+
<File Path="LICENSE" />
5+
<File Path="README.md" />
6+
</Folder>
7+
<Folder Name="/Solution Items/.github/">
8+
<File Path=".github/dependabot.yml" />
9+
</Folder>
10+
<Folder Name="/Solution Items/.github/workflows/">
11+
<File Path=".github/workflows/build.yml" />
12+
<File Path=".github/workflows/publish.yml" />
13+
</Folder>
14+
<Project Path="src/OpenOnlineConfig.Tests/OpenOnlineConfig.Tests.csproj" />
15+
<Project Path="src/OpenOnlineConfig/OpenOnlineConfig.csproj" />
16+
</Solution>

src/OpenOnlineConfig/OpenOnlineConfig.Tests/DeserializationTests.cs renamed to src/OpenOnlineConfig.Tests/DeserializationTests.cs

File renamed without changes.

src/OpenOnlineConfig/OpenOnlineConfig.Tests/OpenOnlineConfig.Tests.csproj renamed to src/OpenOnlineConfig.Tests/OpenOnlineConfig.Tests.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-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<IsAotCompatible>true</IsAotCompatible>
88
<Authors>database64128</Authors>
99
<Product>OpenOnlineConfig.NET</Product>
1010
<Description>.NET class library for Open Online Config (OOC) support.</Description>
1111
<Copyright>© 2025 database64128</Copyright>
12-
<PackageLicenseFile>LICENSE</PackageLicenseFile>
12+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1313
<PackageProjectUrl>https://github.com/Shadowsocks-NET/OpenOnlineConfig.NET</PackageProjectUrl>
1414
<RepositoryUrl>https://github.com/Shadowsocks-NET/OpenOnlineConfig.NET</RepositoryUrl>
1515
<RepositoryType>Public</RepositoryType>
1616
<PackageTags>open-online-config;censorship-circumvention</PackageTags>
1717
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1818
<NoWarn>CS1591</NoWarn>
19-
<Version>1.3.0</Version>
19+
<Version>1.4.0</Version>
2020
</PropertyGroup>
2121

2222
<ItemGroup>
23-
<PackageReference Include="Microsoft.NET.ILLink.Tasks" Version="8.0.22" />
24-
<None Include="..\..\..\LICENSE">
25-
<Pack>True</Pack>
26-
<PackagePath></PackagePath>
27-
</None>
23+
<PackageReference Include="Microsoft.NET.ILLink.Tasks" Version="10.0.0" />
2824
</ItemGroup>
2925

3026
</Project>

src/OpenOnlineConfig/OpenOnlineConfig.sln

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

src/OpenOnlineConfig/OpenOnlineConfig/Utils/DateTimeOffsetUnixTimeSecondsConverter.cs renamed to src/OpenOnlineConfig/Utils/DateTimeOffsetUnixTimeSecondsConverter.cs

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)