How to Add a .NET Core 3.0 Custom Control to Your Visual Studio Toolbox in Less Than 3 Minutes | Syncfusion Blogs
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (174).NET Core  (29).NET MAUI  (207)Angular  (109)ASP.NET  (51)ASP.NET Core  (82)ASP.NET MVC  (89)Azure  (41)Black Friday Deal  (1)Blazor  (219)BoldSign  (14)DocIO  (24)Essential JS 2  (107)Essential Studio  (200)File Formats  (66)Flutter  (133)JavaScript  (221)Microsoft  (119)PDF  (81)Python  (1)React  (100)Streamlit  (1)Succinctly series  (131)Syncfusion  (917)TypeScript  (33)Uno Platform  (3)UWP  (4)Vue  (45)Webinar  (51)Windows Forms  (61)WinUI  (68)WPF  (159)Xamarin  (161)XlsIO  (36)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (8)Business intelligence  (55)Button  (4)C#  (149)Chart  (131)Cloud  (15)Company  (443)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (63)Development  (631)Doc  (8)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (40)Extensions  (22)File Manager  (7)Gantt  (18)Gauge  (12)Git  (5)Grid  (31)HTML  (13)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (507)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (43)Performance  (12)PHP  (2)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (12)Road Map  (12)Scheduler  (52)Security  (3)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (31)Solution Services  (4)Spreadsheet  (11)SQL  (11)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (112)UI  (387)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (31)Visual Studio Code  (19)Web  (595)What's new  (332)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Adding .NET Core 3.0 custom controls in VS toolbox

How to Add a .NET Core 3.0 Custom Control to Your Visual Studio Toolbox in Less Than 3 Minutes

If you are looking to configure .NET Core custom controls in your Visual Studio toolbox, this article is right for you. I’ll guide you through configuring a .NET Core 3.0 custom control in Visual Studio 2019, available as a NuGet package. Following are the prerequisites for the toolbox configuration:

  • Visual Studio 2019 (update 16.3.1 and later)
  • .NET Core SDK 3.0

NuGet structure to support .NET Core 3.0 toolbox

The custom control will be populated in the toolbox only if the NuGet package has the VisualStudioToolsManifest file inside the tools folder. The tools folder will be present parallel to the lib folder inside the NuGet package. Refer to this link for more information about the structure of the VisualStudioToolsManifest file.

For the normal working of the NuGet package, this VisualStudioToolsManifest file isn’t necessary. Its only purpose is to configure a custom control in the Visual Studio toolbox. Add this file in the right location during NuGet packaging.

You can find the structure of the VisualStudioToolsManifest file in the following image.Structure of Visual Studio Tools Manifest

  • The Reference attribute points to the name of the assembly.
  • ContainsControls attribute specifies whether there are any controls to be listed in the Visual Studio toolbox for the given assembly.
  • VSCategory/BlendCategory is the name for the toolbox to be displayed in Visual Studio.
  • Type is the fully qualified name for the control including the namespace.

Install NuGet

Install NuGet to check if it adds the control to toolbox:

  1. Create a .NET Core project in the platform you intend to configure the .NET Core 3.0 controls in your toolbox.Create a new project dialog
  2. Ensure that the target framework is set to .NET Core 3.0.Setting target framework to .NET Core 3.0
  3. Right-click the project and select the Manage NuGet Packages… option.Manage NuGet Package Option
  4. The NuGet Package Manager window will open. Navigate to the Browse tab and search for the NuGet package that has .NET Core 3.0 support.
  5. Select the NuGet package and click Install.Installing the NuGet package
  6. A confirmation message will be displayed. Click OK. The Output window will display the NuGet installation details followed by a completion message.Installation completion message in Output Window
  7. Now, open Visual Studio toolbox to check if the control is displayed in it.Control listed in the VS Toolbox

The control’s name will be displayed along with its Namespace.

Control name (Namespace)

Conclusion

I hope this blog was helpful in configuring your NuGet package to list custom controls in the Visual Studio toolbox for .NET Core 3.0.

Syncfusion provides 70+ high-performance, lightweight, modular, and responsive ASP.NET Core UI controls such as DataGridCharts, and Scheduler. You can use them to improve your application development.

Please share your feedback in the comments section. You can also contact us through our support forumDirect-Trac, or feedback portal. We are waiting to hear your feedback!

Tags:

Share this post:

Comments (3)

Thanks for this post!

Not working for .net 5 vs2019

Manivannan Sundararajan
Manivannan Sundararajan

Hi Richard,

Thanks for commenting on this post. We have checked the toolbox configuration using Syncfusion NuGet packages in Visual Studio 2019 .NET 5.0 application and we could load the toolbox successfully. The toolbox is being visible only in the active designer, so ensure to check in the same. If you still require any assistance on this, please create a support ticket or forum so that we can check more on this and assist you with a solution.

Thanks,
Manivannan

Comments are closed.

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed