Skip to content

Commit 04d3675

Browse files
committed
Target net9/10 in package
This integrates better with the IDE and compilers for preview features.
1 parent 7a22fb9 commit 04d3675

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/AI.CodeAnalysis/ChatClientExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
static class ChatClientExtensions
99
{
1010
#if NET9_0_OR_GREATER
11-
[System.Runtime.CompilerServices.OverloadResolutionPriorityAttribute(100)]
11+
[System.Runtime.CompilerServices.OverloadResolutionPriority(100)]
1212
#endif
1313
/// <summary>Gets an <see cref="IChatClient"/> for use with this <see cref="ChatClient"/>.</summary>
1414
public static IChatClient AsIChatClient(this ChatClient client) =>

src/AI/AI.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>net8.0;net10.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
55
<LangVersion>Preview</LangVersion>
66
<PackageId>Devlooped.Extensions.AI</PackageId>
77
<Description>Extensions for Microsoft.Extensions.AI</Description>
@@ -27,4 +27,4 @@
2727
<None Update="Devlooped.Extensions.AI.props" PackFolder="build" />
2828
</ItemGroup>
2929

30-
</Project>
30+
</Project>

src/AI/ClientPipelineExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public static TOptions Observable(Action<JsonNode>? onRequest = default, Action<
2323

2424
extension<TOptions>(TOptions options) where TOptions : ClientPipelineOptions
2525
{
26+
#if NET9_0_OR_GREATER
27+
[System.Runtime.CompilerServices.OverloadResolutionPriority(100)]
28+
#endif
2629
/// <summary>
2730
/// Adds a <see cref="PipelinePolicy"/> that observes requests and response
2831
/// messages from the <see cref="ClientPipeline"/> and notifies the provided

0 commit comments

Comments
 (0)