Repository navigation
Closed
Labels
Area:ErrorHandlingwarnings and errors/log messages & related error codes.Functionality:RestoreIcebox cleanup candidatePriority:3Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.Status:InactiveIcebox issues not updated for a specific long timeStyle:PackageReferenceType:Bug
Description
Consider the following project.json:
{
"dependencies": {
"Newtonsoft.Json": "9.0.1"
},
"frameworks": {
"netcoreapp1.0": {}
},
"runtimes": {
"win7-x64": {}
}
}This restores without error. Now change it by updating the lineup for corefx packages (using source https://dotnet.myget.org/F/dotnet-core/api/v3/index.json)
{
"dependencies": {
"Newtonsoft.Json": "9.0.1",
"Microsoft.NETCore.Targets": "1.0.3-preview1-24528-02"
},
"frameworks": {
"netcoreapp1.0": {}
},
"runtimes": {
"win7-x64": {}
}
}Restoring this results in downgrade warnings from NuGet
Detected package downgrade: System.Runtime from 4.3.0-preview1-24528-02 to 4.1.0
warn : foo (>= 1.0.0) -> Newtonsoft.Json (>= 9.0.1) -> System.Collections (>= 4.0.11) -> runtime.any.System.Collections (>= 4.3.0-preview1-24528-02) -> System.Runtime (>= 4.3.0-preview1-24528-02)
warn : foo (>= 1.0.0) -> Newtonsoft.Json (>= 9.0.1) -> System.Runtime (>= 4.1.0)
warn : Detected package downgrade: Microsoft.NETCore.Platforms from 1.0.2-preview1-24528-02 to 1.0.1
warn : foo (>= 1.0.0) -> Newtonsoft.Json (>= 9.0.1) -> System.Runtime (>= 4.1.0) -> runtime.any.System.Runtime (>= 4.3.0-preview1-24528-02) -> System.Private.Uri (>= 4.3.0-preview1-24528-02) -> Microsoft.NETCore.Platforms (>= 1.0.2-preview1-24528-02)
warn : foo (>= 1.0.0) -> Newtonsoft.Json (>= 9.0.1) -> System.Runtime (>= 4.1.0) -> Microsoft.NETCore.Platforms (>= 1.0.1)
warn : Detected package downgrade: Microsoft.NETCore.Platforms from 1.0.2-preview1-24528-02 to 1.0.1
warn : foo (>= 1.0.0) -> Newtonsoft.Json (>= 9.0.1) -> System.Runtime.Extensions (>= 4.1.0) -> runtime.win.System.Runtime.Extensions (>= 4.3.0-preview1-24528-02) -> System.Private.Uri (>= 4.3.0-preview1-24528-02) -> Microsoft.NETCore.Platforms (>= 1.0.2-preview1-24528-02)
warn : foo (>= 1.0.0) -> Newtonsoft.Json (>= 9.0.1) -> System.Runtime.Extensions (>= 4.1.0) -> Microsoft.NETCore.Platforms (>= 1.0.1)
I don't believe those should be considered downgrades given how the runtime packages are pulled in. /cc @davidfowl @rrelyea
Metadata
Metadata
Assignees
Labels
Area:ErrorHandlingwarnings and errors/log messages & related error codes.Functionality:RestoreIcebox cleanup candidatePriority:3Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.Status:InactiveIcebox issues not updated for a specific long timeStyle:PackageReferenceType:Bug
Activity
RussKie commentedon Nov 29, 2016
I'm having similar issues https://github.com/dotnet/corefx/issues/14110
Mohammed-El-Nabulsi commentedon Oct 15, 2017
I'm having exactly the same issues but only when running the following command:
dotnet publish --self-contained --runtime win-x64jainaashish commentedon Oct 17, 2017
@ericstj is this still a valid issue?
@Mohammed-El-Nabulsi can you tell us more about your issue? and probably a repro solution?
ericstj commentedon Oct 17, 2017
Yes it is still valid. It'll be less prevalent moving forward (netcoreapp2.0 and later) as we are only using runtime.json to bring in our own private runtime packages with no dependencies, but the problem still exists for UAP10.0 and NETCoreApp 1.x.
[-]NuGet claims downgrades for packages brought in through lineup[/-][+]NuGet claims downgrades (NU1605) for packages brought in through lineup[/+]dotnet-policy-service commentedon Apr 15, 2026
Due to lack of recent activity, this issue has been marked as a candidate for icebox cleanup. It will be closed if no further activity occurs within 14 more days. If the issue receives enough upvotes, it will be flagged with
Triage:NeedsTriageDiscussionfor team review.This process is part of the experimental Stale icebox issues cleanup we are currently trialing. Please share any feedback you might have in the linked issue.
dotnet-policy-service commentedon Apr 30, 2026
This issue will now be closed since it had been marked Icebox cleanup candidate, but received no further activity in the past 14 days.