VisualStudio ToolBox is not populated from a NuGet package if a project is placed in a solution folder #8868
Details about Problem
NuGet product used: VS UI
NuGet version: 126.96.36.19992
VS version: 16.4
OS version: 10.0.18362.0
Worked before?: No
Visual Studio doesn’t add toolbox items from a NuGet package if a project is placed into a solution folder. A VS customer created a small sample (WPF, .NET Core3) to demonstrate the issue: https://github.com/pavelovcharov/netcore3_toolbox_solutionfolders.
This is a bug in VsPathContextProvider.CreateNuGetProjectAsync. DTE.Solution.Projects doesn't include projects within solution folders. See https://www.wwwlicious.com/envdte-getting-all-projects-html/ for an explanation.