Skip to content

Commit

Permalink
Add net 9.0 support (#3171)
Browse files Browse the repository at this point in the history
* add net 9.0 updates

* add net9.x to pipelines

* Add public api definitions

* remove duplicate package reference

* remove nuget errors due to package reference
  • Loading branch information
marabooy authored Jan 31, 2025
1 parent 54d2da7 commit 8fc6c3f
Show file tree
Hide file tree
Showing 12 changed files with 5,832 additions and 7 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
3 changes: 3 additions & 0 deletions buildandtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ steps:
- task: UseDotNet@2
inputs:
version: '8.x'
- task: UseDotNet@2
inputs:
version: '9.x'

- task: DotNetCoreCLI@2
displayName: 'Build'
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
Empty file.
980 changes: 980 additions & 0 deletions src/Microsoft.OData.Client/PublicAPI/net9.0/PublicAPI.Unshipped.txt

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions src/Microsoft.OData.Core/Microsoft.OData.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,23 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.Buffers" Version="4.5.1" />
</ItemGroup>

<ItemGroup >
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="6.0.3" />
</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
Empty file.
2,491 changes: 2,491 additions & 0 deletions src/Microsoft.OData.Core/PublicAPI/net9.0/PublicAPI.Unshipped.txt

Large diffs are not rendered by default.

Empty file.
1,976 changes: 1,976 additions & 0 deletions src/Microsoft.OData.Edm/PublicAPI/net9.0/PublicAPI.Unshipped.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

372 changes: 372 additions & 0 deletions src/Microsoft.Spatial/PublicAPI/net9.0/PublicAPI.Unshipped.txt

Large diffs are not rendered by default.

0 comments on commit 8fc6c3f

Please sign in to comment.