Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VisualStudio ToolBox is not populated from a NuGet package if a project is placed in a solution folder #8868

debonte opened this issue Dec 2, 2019 · 1 comment


Copy link

@debonte debonte commented Dec 2, 2019

Details about Problem

NuGet product used: VS UI

NuGet version:

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:

This is a bug in VsPathContextProvider.CreateNuGetProjectAsync. DTE.Solution.Projects doesn't include projects within solution folders. See for an explanation.

Repro steps

  1. git clone git://
  2. open and build TestControl.sln. The TestControl.1.0.0.nupkg package will be created
  3. open and build TestApp.sln, then open MainWindow.xaml. The TestControl item will be added to VisualStudio Toolbox
  4. open and build TestApp.With.Solution.Folders.sln. This solution contains the same project, but it is placed into a solution folder. Open MainWindow.xaml. The TestControl item is not shown in the Toolbox.

This comment has been minimized.

Copy link

@debonte debonte commented Dec 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.