Skip to content

Commit ee340be

Browse files
authored
Address vulnerability (microsoft#2631)
1 parent 19ac6e5 commit ee340be

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

dotnet/Directory.Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
<PackageVersion Include="System.Text.Json" Version="10.0.0" />
4747
<PackageVersion Include="System.Threading.Channels" Version="10.0.0" />
4848
<PackageVersion Include="System.Threading.Tasks.Extensions" Version="4.6.3" />
49+
<PackageVersion Include="System.Net.Security" Version="4.3.2" />
4950
<!-- OpenTelemetry -->
5051
<PackageVersion Include="OpenTelemetry" Version="1.13.1" />
5152
<PackageVersion Include="OpenTelemetry.Api" Version="1.13.1" />

dotnet/samples/GettingStarted/AgentProviders/Agent_With_GoogleGemini/Agent_With_GoogleGemini.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,22 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net10.0</TargetFrameworks>
5+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
66

77
<Nullable>enable</Nullable>
88
<ImplicitUsings>enable</ImplicitUsings>
9-
<NoWarn>$(NoWarn);IDE0059</NoWarn>
9+
<NoWarn>$(NoWarn);IDE0059;NU1510</NoWarn>
1010
</PropertyGroup>
1111

1212
<ItemGroup>
1313
<PackageReference Include="Google.GenAI" />
1414
<PackageReference Include="Mscc.GenerativeAI.Microsoft" />
1515
</ItemGroup>
1616

17+
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0' or '$(TargetFramework)' == 'net9.0'">
18+
<PackageReference Include="System.Net.Security" />
19+
</ItemGroup>
20+
1721
<ItemGroup>
1822
<ProjectReference Include="..\..\..\..\src\Microsoft.Agents.AI\Microsoft.Agents.AI.csproj" />
1923
</ItemGroup>

0 commit comments

Comments
 (0)