Skip to content

Commit 36c28e7

Browse files
HavenDVclaude
andcommitted
feat: Upgrade to net10.0 single-target, remove polyfills, bump build packages
- Change main lib from multi-target to net10.0 only - Remove PolySharp and System.Text.Json references (unnecessary on net10) - Remove net4.6.2 conditional references - Upgrade all helper and test projects to net10.0 - Update CI workflows to dotnet-version 10.0.x - Add NuGet audit PropertyGroup to src/Directory.Build.props - Bump MinVer → 7.0.0 and DotNet.ReproducibleBuilds → 2.0.2 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6862a28 commit 36c28e7

9 files changed

Lines changed: 16 additions & 20 deletions

File tree

.github/workflows/auto-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Setup .NET
3333
uses: actions/setup-dotnet@v4
3434
with:
35-
dotnet-version: 9.0.x
35+
dotnet-version: 10.0.x
3636

3737
- name: Generate code
3838
run: |

.github/workflows/mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup .NET
3636
uses: actions/setup-dotnet@v4
3737
with:
38-
dotnet-version: 9.0.x
38+
dotnet-version: 10.0.x
3939

4040
- name: Generate docs
4141
run: dotnet run --project src/helpers/GenerateDocs/GenerateDocs.csproj .

src/Directory.Build.props

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,12 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

9+
10+
<PropertyGroup Label="Auditing">
11+
<NuGetAudit>true</NuGetAudit>
12+
<NuGetAuditMode>all</NuGetAuditMode>
13+
<NuGetAuditLevel>low</NuGetAuditLevel>
14+
<WarningsAsErrors>$(WarningsAsErrors);NU1900;NU1901;NU1902;NU1903;NU1904</WarningsAsErrors>
15+
</PropertyGroup>
16+
917
</Project>

src/helpers/FixOpenApiSpec/FixOpenApiSpec.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>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<OutputType>Exe</OutputType>
66
<LangVersion>preview</LangVersion>
77
<Nullable>enable</Nullable>

src/helpers/GenerateDocs/GenerateDocs.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net9.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

src/helpers/TrimmingHelper/TrimmingHelper.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net9.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77

88
<PublishTrimmed>true</PublishTrimmed>

src/libs/Firecrawl.Cli/Firecrawl.Cli.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
5+
<TargetFramework>net10.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<GenerateDocumentationFile>false</GenerateDocumentationFile>
Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net4.6.2;net8.0;net9.0</TargetFrameworks>
4+
<TargetFramework>net10.0</TargetFramework>
55
</PropertyGroup>
66

77
<PropertyGroup Label="Nuget">
88
<Description>Generated C# SDK based on Firecrawl OpenAPI specification.</Description>
99
<PackageTags>api;client;sdk;dotnet;swagger;openapi;specification;generated;nswag</PackageTags>
1010
</PropertyGroup>
11-
12-
<ItemGroup>
13-
<PackageReference Include="PolySharp" Version="1.15.0">
14-
<PrivateAssets>all</PrivateAssets>
15-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
16-
</PackageReference>
17-
<PackageReference Include="System.Text.Json" Version="10.0.3" />
18-
</ItemGroup>
19-
20-
<ItemGroup Condition="'$(TargetFramework)' == 'net4.6.2'">
21-
<Reference Include="System.Net.Http" />
22-
</ItemGroup>
2311

2412
</Project>

src/tests/IntegrationTests/Firecrawl.IntegrationTests.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>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup Label="Base packages">

0 commit comments

Comments
 (0)