Skip to content

Commit

Permalink
Add support for net6.0 for AspNetCore.OData.NewtonsoftJson (#526)
Browse files Browse the repository at this point in the history
* Add support for net6.0.

* Update the test project.
  • Loading branch information
marabooy committed Mar 23, 2022
1 parent f3fa98f commit a10e8e5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/Microsoft.AspNetCore.OData.NewtonsoftJson.Nightly.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@
<icon>images\odata.png</icon>
<repository type="git" url="https://github.com/OData/AspNetCoreOData.git" branch="master" />
<dependencies>
<group targetFramework=".net5.0">
<group targetFramework=".net6.0">
<dependency id="Microsoft.AspNetCore.OData" version="$VersionFullSemantic$-Nightly$NightlyBuildVersion$" />
</group>
<group targetFramework=".net5.0">
<dependency id="Microsoft.AspNetCore.OData" version="$VersionFullSemantic$-Nightly$NightlyBuildVersion$" />
</group>
</dependencies>
</metadata>
<files>
<file src="$ProductRoot$\net6.0\Microsoft.AspNetCore.OData.NewtonsoftJson.dll" target="lib\net6.0" />
<file src="$ProductRoot$\net6.0\Microsoft.AspNetCore.OData.NewtonsoftJson.xml" target="lib\net6.0" />
<file src="$ProductRoot$\net6.0\Microsoft.AspNetCore.OData.NewtonsoftJson.pdb" target="lib\net6.0" />
<file src="$ProductRoot$\net5.0\Microsoft.AspNetCore.OData.NewtonsoftJson.dll" target="lib\net5.0" />
<file src="$ProductRoot$\net5.0\Microsoft.AspNetCore.OData.NewtonsoftJson.xml" target="lib\net5.0" />
<file src="$ProductRoot$\net5.0\Microsoft.AspNetCore.OData.NewtonsoftJson.pdb" target="lib\net5.0" />
Expand Down
6 changes: 6 additions & 0 deletions src/Microsoft.AspNetCore.OData.NewtonsoftJson.Release.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,15 @@
<group targetFramework=".net5.0">
<dependency id="Microsoft.AspNetCore.OData" version="$VersionNuGetSemantic$" />
</group>
<group targetFramework=".net6.0">
<dependency id="Microsoft.AspNetCore.OData" version="$VersionNuGetSemantic$" />
</group>
</dependencies>
</metadata>
<files>
<file src="$ProductRoot$\net6.0\Microsoft.AspNetCore.OData.NewtonsoftJson.dll" target="lib\net6.0" />
<file src="$ProductRoot$\net6.0\Microsoft.AspNetCore.OData.NewtonsoftJson.xml" target="lib\net6.0" />
<file src="$ProductRoot$\net6.0\Microsoft.AspNetCore.OData.NewtonsoftJson.pdb" target="lib\net6.0" />
<file src="$ProductRoot$\net5.0\Microsoft.AspNetCore.OData.NewtonsoftJson.dll" target="lib\net5.0" />
<file src="$ProductRoot$\net5.0\Microsoft.AspNetCore.OData.NewtonsoftJson.xml" target="lib\net5.0" />
<file src="$ProductRoot$\net5.0\Microsoft.AspNetCore.OData.NewtonsoftJson.pdb" target="lib\net5.0" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
<RootNamespace>Microsoft.AspNetCore.OData.NewtonsoftJson</RootNamespace>
<DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
Expand Down

0 comments on commit a10e8e5

Please sign in to comment.