Skip to content

Commit 9c2e800

Browse files
Remove unnecessary PackageReferences after .NET 10 update (microsoft#2394)
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>
1 parent a26e9d6 commit 9c2e800

17 files changed

Lines changed: 4 additions & 53 deletions

File tree

dotnet/samples/A2AClientServer/A2AClient/A2AClient.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
<PackageReference Include="Microsoft.Extensions.Hosting" />
1515
</ItemGroup>
1616

17-
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible($(TargetFramework), 'net10.0'))">
18-
<PackageReference Include="System.Net.ServerSentEvents" />
19-
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" />
20-
</ItemGroup>
21-
2217
<ItemGroup>
2318
<ProjectReference Include="..\..\..\src\Microsoft.Agents.AI.A2A\Microsoft.Agents.AI.A2A.csproj" />
2419
<ProjectReference Include="..\..\..\src\Microsoft.Agents.AI.Abstractions\Microsoft.Agents.AI.Abstractions.csproj" />

dotnet/samples/GettingStarted/A2A/A2AAgent_AsFunctionTools/A2AAgent_AsFunctionTools.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
<PackageReference Include="Microsoft.Extensions.Hosting" />
1616
</ItemGroup>
1717

18-
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible($(TargetFramework), 'net10.0'))">
19-
<PackageReference Include="System.Net.ServerSentEvents" />
20-
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" />
21-
</ItemGroup>
22-
2318
<ItemGroup>
2419
<ProjectReference Include="..\..\..\..\src\Microsoft.Agents.AI.A2A\Microsoft.Agents.AI.A2A.csproj" />
2520
<ProjectReference Include="..\..\..\..\src\Microsoft.Agents.AI.OpenAI\Microsoft.Agents.AI.OpenAI.csproj" />

dotnet/samples/GettingStarted/Agents/Agent_Step10_AsMcpTool/Agent_Step10_AsMcpTool.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
<PackageReference Include="ModelContextProtocol" />
1717
</ItemGroup>
1818

19-
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible($(TargetFramework), 'net10.0'))">
20-
<PackageReference Include="System.Net.ServerSentEvents" />
21-
</ItemGroup>
22-
2319
<ItemGroup>
2420
<ProjectReference Include="..\..\..\..\src\Microsoft.Agents.AI.AzureAI.Persistent\Microsoft.Agents.AI.AzureAI.Persistent.csproj" />
2521
</ItemGroup>

dotnet/samples/GettingStarted/ModelContextProtocol/Agent_MCP_Server_Auth/Agent_MCP_Server_Auth.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
<PackageReference Include="ModelContextProtocol" />
1818
</ItemGroup>
1919

20-
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible($(TargetFramework), 'net10.0'))">
21-
<PackageReference Include="System.Net.ServerSentEvents" />
22-
</ItemGroup>
23-
2420
<ItemGroup>
2521
<ProjectReference Include="..\..\..\..\src\Microsoft.Agents.AI.OpenAI\Microsoft.Agents.AI.OpenAI.csproj" />
2622
</ItemGroup>

dotnet/src/Microsoft.Agents.AI.A2A/Microsoft.Agents.AI.A2A.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
<ItemGroup>
1616
<PackageReference Include="A2A" />
17-
<PackageReference Include="System.Net.ServerSentEvents" />
18-
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" />
1917
</ItemGroup>
2018

2119
<PropertyGroup>

dotnet/src/Microsoft.Agents.AI.AGUI/Microsoft.Agents.AI.AGUI.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
<ItemGroup>
2424
<PackageReference Include="Microsoft.Extensions.AI" />
2525
<PackageReference Include="System.Net.ServerSentEvents" />
26-
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" />
2726
<PackageReference Include="System.Net.Http.Json" />
2827
<PackageReference Include="System.Threading.Channels" />
2928
</ItemGroup>

dotnet/src/Microsoft.Agents.AI.Hosting.A2A.AspNetCore/Microsoft.Agents.AI.Hosting.A2A.AspNetCore.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible($(TargetFramework), 'net10.0'))">
1616
<PackageReference Include="System.Linq.AsyncEnumerable" />
17-
<PackageReference Include="System.Net.ServerSentEvents" />
18-
<PackageReference Include="System.Text.Json" />
1917
</ItemGroup>
2018

2119
<ItemGroup>

dotnet/src/Microsoft.Agents.AI.Hosting.A2A/Microsoft.Agents.AI.Hosting.A2A.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
<PackageReference Include="A2A" />
1919
</ItemGroup>
2020

21-
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible($(TargetFramework), 'net10.0'))">
22-
<PackageReference Include="System.Net.ServerSentEvents" />
23-
</ItemGroup>
24-
2521
<ItemGroup>
2622
<ProjectReference Include="..\Microsoft.Agents.AI.Abstractions\Microsoft.Agents.AI.Abstractions.csproj" />
2723
<ProjectReference Include="..\Microsoft.Agents.AI.Hosting\Microsoft.Agents.AI.Hosting.csproj" />

dotnet/src/Microsoft.Agents.AI.Hosting.AGUI.AspNetCore/Microsoft.Agents.AI.Hosting.AGUI.AspNetCore.csproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,15 @@
2525
<FrameworkReference Include="Microsoft.AspNetCore.App" />
2626
</ItemGroup>
2727

28-
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible($(TargetFramework), 'net10.0'))">
29-
<PackageReference Include="System.Net.ServerSentEvents" />
30-
<PackageReference Include="System.Text.Json" />
31-
</ItemGroup>
32-
3328
<ItemGroup>
3429
<Compile Include="..\Microsoft.Agents.AI.AGUI\Shared\**\*.cs" LinkBase="Shared" />
3530
<Compile Remove="ServerSentEventsResult.cs" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' AND $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '10.0'))" />
3631
</ItemGroup>
3732

33+
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible($(TargetFramework), 'net10.0'))">
34+
<PackageReference Include="System.Net.ServerSentEvents" />
35+
</ItemGroup>
36+
3837
<ItemGroup>
3938
<InternalsVisibleTo Include="Microsoft.Agents.AI.Hosting.AGUI.AspNetCore.UnitTests" />
4039
<InternalsVisibleTo Include="Microsoft.Agents.AI.Hosting.AGUI.AspNetCore.IntegrationTests" />

dotnet/src/Microsoft.Agents.AI.Hosting.OpenAI/Microsoft.Agents.AI.Hosting.OpenAI.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626

2727
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible($(TargetFramework), 'net10.0'))">
2828
<PackageReference Include="System.Linq.AsyncEnumerable" />
29-
<PackageReference Include="System.Net.ServerSentEvents" />
30-
<PackageReference Include="System.Text.Json" />
3129
</ItemGroup>
3230

3331
<ItemGroup>

0 commit comments

Comments
 (0)