PackageReference added under Target is not displayed in Dependency Tree #9415
Labels
Feature-Dependency-Node
"Dependencies" node in Solution Explorer that display project, binary & package references
Triage-Approved
Reviewed and prioritized
Visual Studio Version
17.9
Summary
I have a Target which calculates PackageReferences to be added and it runs right before
CollectPackageReferences
target.Newly added packages are successfully restored and the project is successfully built on
MSBuild
anddotnet cli
.But they are not displayed under Dependency Tree.
Here is the code;
The idea is to pull referenced project as package if the active/current build configuration is not specified in
BuildConfigurations
metadata. Otherwise it will be added asProjectReference
. In this case,MaterialBalance
andPricing
should be pulled as package.As you can see from screenshot of
ResolvePackageDependenciesDesignTime
target, added package references are presenting;It presents on Package Manager screen as well;
But it is not displayed under Dependency Tree;
Expected Behavior
Added PackageReference under Target should be displayed on Packages Dependency Tree.
Actual Behavior
Added PackageReference under Target is not displayed on Packages Dependency Tree while the packages are restored and the project is built successfully.
I have provided a repo that the issue is reproduced with minimum steps.
The text was updated successfully, but these errors were encountered: