Open msmolka opened 1 year ago
Can confirm it's quite annoying
another example is Microsoft.AspNetCore.Mvc.Newtonsoft
https://www.nuget.org/packages/Microsoft.AspNetCore.Mvc.NewtonsoftJson#dependencies-body-tab
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="7.0.5" Condition=" '$(TargetFramework)' == 'net7.0' " />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.16" Condition=" '$(TargetFramework)' == 'net6.0' " />
</ItemGroup>
</Project>
dotnet list package --outdate
[net6.0]:
Top-level Package Requested Resolved Latest
> Microsoft.AspNetCore.Mvc.NewtonsoftJson 6.0.16 7.0.5
[net7.0]: No package updates available for this framework.
System.ServiceModel.* v=6.0.0 are mistakenly listed for net48
Describe the bug
using:
dotnet list package --outdated --framework net6.0
shows packages versions that supported only by net7.0 target framework and not net6.0To Reproduce
project with reference:
<PackageReference Include="Ardalis.SmartEnum" Version="2.1.0" />
outdate will show:
7.0.0 is not compatible with net6
Further technical details