Legacy package reference does not no-op after the first build after package install.
The package install adds the package to the "dependencies" but not in the frameworks.
In addition the version during install is normalzied version range while during on build restore it's not.
On install
"dependencies": {
"Newtonsoft.Json": {
"target": "Package",
"version": "[10.0.2, )"
}
},
"frameworks": {
"net461": {}
},
On build restore
"dependencies": {
"Newtonsoft.Json": {
"target": "Package",
"version": "10.0.2"
}
},
"frameworks": {
"net461": {
"dependencies": {
"Newtonsoft.Json": {
"target": "Package",
"version": "10.0.2"
}
}
}
},