You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
nuget restore should add pack files to the compile/runtime sections of assets.json #4514
The assemblies under native won't show up in the compile/runtime sections of A's ProjectReference to B in the assets.json file. While, if A referenced B as a nupkg, it would. This forces people to reference projects as packages when they could just reference them as projects.
Once this gets fixed in NuGet, then additional changes will need to be made in the SDK as well.
We discussed this for restore/pack, it is a major feature that we decided not to take for RTM due to the size.
DNX supported this by defining all additional files in project.json under pack includes. Restore then added these into the lock file.
With MSBuild finding all assets is more involved than just reading a static json file.
To make this work we will need:
Restore runs the pack target against every project to find all assets. This needs to happen both in MSBuild and in Visual Studio (unclear how this can work in Visual Studio currently)
Restore runs nearest TFM asset selection against the result of pack (already in place from the p2p transitive changes)
Dotnet CLI, MSbuild, and Visual Studio need to be updated to rely on the assets.json file for all project outputs instead of reading the project directly to find them. Without this we will always have inconsistent results.
Additional complications/open questions:
Packing several projects into one package with ref and runtime assemblies changes the depth of the graph
Flags such as IncludeReferenceProjects also change the depth of the graph which changes the resolver result
Finding p2p references is already the majority of restore time. Finding all assets from projects also would impact perf also.
Is it possible to find all assets that would be in the packed nupkg without building first?
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. Any new comment (by anyone, not necessarily the author) will add a Triage:NeedsTriageDiscussion label and lead to a triaging process.
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.
Activity
rrelyea commentedon Feb 6, 2017
@emgarten - please investigate and understand impact if we take for 4.0 or 4.0.1.
emgarten commentedon Feb 6, 2017
We discussed this for restore/pack, it is a major feature that we decided not to take for RTM due to the size.
DNX supported this by defining all additional files in project.json under pack includes. Restore then added these into the lock file.
With MSBuild finding all assets is more involved than just reading a static json file.
To make this work we will need:
Additional complications/open questions:
rrelyea commentedon Feb 8, 2017
Moving to 4.0.1 - just trying to confirm in linked issue that they don't absolutely need it in rtm.
emgarten commentedon Nov 9, 2017
This would still be useful, however we have not heard a lot of feedback on this so far.
dotnet-policy-service commentedon Mar 9, 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. Any new comment (by anyone, not necessarily the author) will add a
Triage:NeedsTriageDiscussionlabel and lead to a triaging process.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 Mar 24, 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.