Skip to content

Commit d70e1f2

Browse files
HavenDVclaude
andcommitted
feat: Upgrade to net10.0 single-target, remove polyfills
- Change AssemblyAI.csproj from multi-target (netstandard2.0;net4.6.2;net8.0;net9.0) to net10.0 only - Remove PolySharp, System.Text.Json, and net4.6.2 conditional references - Upgrade all helper and test projects from net9.0 to net10.0 - Update CI workflows to dotnet-version 10.0.x - Add NuGet audit PropertyGroup to src/Directory.Build.props - Fix required member initializers for LemurTaskParamsVariant1, TranscriptOptionalParams Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c3ffc79 commit d70e1f2

13 files changed

Lines changed: 22 additions & 27 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
@@ -37,7 +37,7 @@ jobs:
3737
- name: Setup .NET
3838
uses: actions/setup-dotnet@v4
3939
with:
40-
dotnet-version: 9.0.x
40+
dotnet-version: 10.0.x
4141

4242
- name: Generate docs
4343
run: dotnet run --project src/helpers/GenerateDocs/GenerateDocs.csproj .

src/Directory.Build.props

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,12 @@
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
8-
8+
9+
<PropertyGroup Label="Auditing">
10+
<NuGetAudit>true</NuGetAudit>
11+
<NuGetAuditMode>all</NuGetAuditMode>
12+
<NuGetAuditLevel>low</NuGetAuditLevel>
13+
<WarningsAsErrors>$(WarningsAsErrors);NU1900;NU1901;NU1902;NU1903;NU1904</WarningsAsErrors>
14+
</PropertyGroup>
15+
916
</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>
Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,18 @@
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
<NoWarn>$(NoWarn);MEAI001</NoWarn>
66
</PropertyGroup>
7-
7+
88
<PropertyGroup Label="Nuget">
99
<PackageId>tryAGI.AssemblyAI</PackageId>
1010
<Description>Generated C# SDK based on AssemblyAI OpenAPI specification.</Description>
1111
<PackageTags>api;client;sdk;dotnet;swagger;openapi;specification;generated;nswag</PackageTags>
1212
</PropertyGroup>
13-
13+
1414
<ItemGroup>
15-
<PackageReference Include="PolySharp" Version="1.15.0">
16-
<PrivateAssets>all</PrivateAssets>
17-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
18-
</PackageReference>
19-
<PackageReference Include="System.Text.Json" Version="10.0.3" />
2015
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="10.3.0" />
2116
</ItemGroup>
2217

23-
<ItemGroup Condition="'$(TargetFramework)' == 'net4.6.2'">
24-
<PackageReference Include="Microsoft.NET.ILLink.Tasks" Version="10.0.2" />
25-
<Reference Include="System.Net.Http" />
26-
</ItemGroup>
27-
2818
</Project>

src/libs/AssemblyAI/Conversions/LemurTaskParams.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ public static LemurTaskParams FromPrompt(
2727
LemurBaseParams? @params = null)
2828
{
2929
return new LemurTaskParams(
30-
value1: LemurTaskParamsVariant1.FromPrompt(prompt),
31-
value2: @params ?? new LemurBaseParams
32-
{
33-
FinalModel = "default",
34-
});
30+
LemurTaskParamsVariant1.FromPrompt(prompt));
3531
}
3632
}

src/libs/AssemblyAI/Conversions/LemurTaskParamsVariant1.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public static LemurTaskParamsVariant1 FromPrompt(string prompt)
2626
return new LemurTaskParamsVariant1
2727
{
2828
Prompt = prompt,
29+
FinalModel = LemurModel.AnthropicClaude35Sonnet,
2930
};
3031
}
3132
}

src/libs/AssemblyAI/Conversions/TranscriptParams.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static TranscriptParams FromUrl(
3939
{
4040
return new TranscriptParams(
4141
value1: TranscriptParamsVariant1.FromUrl(url),
42-
value2: @params ?? new TranscriptOptionalParams());
42+
value2: @params ?? new TranscriptOptionalParams { SpeechModels = [] });
4343
}
4444

4545
/// <summary>

0 commit comments

Comments
 (0)