dotnet / dotnet/NuGet.BuildTasks
ResolveNuGetPackageAssets.ReferencedPackages returns the wrong result when dependencies are listed under framework
Open
- Dominant language
- PowerShell
- Stars
- 47
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
Sample project:
```
{
"dependencies": {
"System.Runtime": "4.0.0",
"System.Dynamic.Runtime": "4.0.0",
"System.Linq.Expressions": "4.0.0"
},
"frameworks": {
"dotnet5.1": {
"dependencies": {
"System.IO": "4.0.0"
}
}
}
}
```
When building this I would expect the build task to return System.IO in the list of ReferencedPackages. It does not.
Potentially hacky fix: https://github.com/dotnet/buildtools/pull/368
Moved from: https://github.com/NuGet/Home/issues/1843
cc @ericstj @jasonmalinowski
Contributor guide
Assessment
This issue has not been assessed yet.