Skip to content

Commit

Permalink
add net 9.0 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
marabooy committed Jan 23, 2025
1 parent c1c9b84 commit 46cb1cf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
<DefineConstants>$(DefineConstants);SUPPRESS_SECURITY_RULES;</DefineConstants>
</PropertyGroup>

<PropertyGroup>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net8.0;net9.0</TargetFrameworks>
</PropertyGroup>

<PropertyGroup Condition ="'$(TargetFrameworkIdentifier)' == 'net45'">
<DefineConstants>$(DefineConstants);SUPPRESS_SECURITY_RULES;</DefineConstants>
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.OData.Client/Microsoft.OData.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
<PackageReference Include="System.ComponentModel.Annotations" Version="4.7.0" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
<PackageReference Include="System.Security.Permissions" Version="9.0.1" />
</ItemGroup>
<ItemGroup>
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
Expand Down
16 changes: 10 additions & 6 deletions src/Microsoft.OData.Core/Microsoft.OData.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,21 @@
<PackageReference Include="System.Buffers" Version="4.5.1" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="6.0.3" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="9.0.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Microsoft.OData.Edm\Microsoft.OData.Edm.csproj" />
<ProjectReference Include="..\Microsoft.Spatial\Microsoft.Spatial.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="Microsoft.Extensions.ObjectPool">
<Version>6.0.3</Version>
</PackageReference>
</ItemGroup>

<ItemGroup>
<AdditionalFiles Include="PublicAPI/$(TargetFramework)/PublicAPI.Shipped.txt" />
<AdditionalFiles Include="PublicAPI/$(TargetFramework)/PublicAPI.Unshipped.txt" />
Expand Down

0 comments on commit 46cb1cf

Please sign in to comment.