Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am trying to create a Toolbox exension for Visual Studio 2013. I installed the SDK and created a Extensibility - Windows Forms Toolbox Control project.

Inside this project I have multiple groups of controls, each group resides in a separate namespace and each control has their own specific [ProvideToolboxControl("GROUPNAME", false)] tag.

When I compile the project and install the extension, all my controls are added to the toolbox, but instead of seeing them in their defined groups they are all added together in one (the last group defined).

On opening the .pkgdef file, I see the following. Instead of adding each specific control, the attribute just adds the entire project over and over again, using the last line to determine toolbox name.

[$RootKey$\ToolboxControlsInstaller\DEFAULT_NAMESPACE Version=1.0.0.1, Culture=neutral, PublicKeyToken=null]
@="GROUP_A"
"Codebase"="$PackageFolder$\DLL_NAME"
[$RootKey$\ToolboxControlsInstaller\DEFAULT_NAMESPACE Version=1.0.0.1, Culture=neutral, PublicKeyToken=null]
@="GROUP_A"
"Codebase"="$PackageFolder$\DLL_NAME"
[$RootKey$\ToolboxControlsInstaller\DEFAULT_NAMESPACE Version=1.0.0.1, Culture=neutral, PublicKeyToken=null]
@="GROUP_A"
"Codebase"="$PackageFolder$\DLL_NAME"
[$RootKey$\ToolboxControlsInstaller\DEFAULT_NAMESPACE Version=1.0.0.1, Culture=neutral, PublicKeyToken=null]
@="GROUP_B"
"Codebase"="$PackageFolder$\DLL_NAME"
[$RootKey$\ToolboxControlsInstaller\DEFAULT_NAMESPACE Version=1.0.0.1, Culture=neutral, PublicKeyToken=null]
@="GROUP_B"
"Codebase"="$PackageFolder$\DLL_NAME"
[$RootKey$\ToolboxControlsInstaller\DEFAULT_NAMESPACE Version=1.0.0.1, Culture=neutral, PublicKeyToken=null]
@="GROUP_B"
"Codebase"="$PackageFolder$\DLL_NAME"
[$RootKey$\ToolboxControlsInstaller\DEFAULT_NAMESPACE Version=1.0.0.1, Culture=neutral, PublicKeyToken=null]
@="GROUP_B"
"Codebase"="$PackageFolder$\DLL_NAME"
[$RootKey$\ToolboxControlsInstaller\DEFAULT_NAMESPACE Version=1.0.0.1, Culture=neutral, PublicKeyToken=null]
@="GROUP_B"
"Codebase"="$PackageFolder$\DLL_NAME"

Question: How do I create multiple Toolbox Groups in a single project?
Posted

1 solution

While I hope you get a helpful reply here soon (and I'd never under-estimate what CP members know, and are capable of !), developing a VS extension is such a specialized area of programming that I wonder if you would be more likely to get a quick response on Microsoft's VS Integration forum where .vsix development is discussed, and support provided: [^].

Do check-out resources here on .vsix: [^].
 
Share this answer
 
Comments
DCat 85 29-Oct-14 3:29am    
Looks like I will have to continue my search. Thanks for pointing me in the right direction :).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900