dotnet / dotnet/winforms

Custom .NET Standard 2.0 components aren't displayed in Toolbox in VisualStudio v17.8

Open
#10,393 3 comments 1 reaction 1 assignee Claimed by @KlausLoeffelmann View on GitHub
area-VSDesigner
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

### Environment

Microsoft Visual Studio version 17.8.0

### .NET version

.NET 6.0 - WinForms

### Did this work in a previous version of Visual Studio and/or previous .NET release?

Yes, it works in Visual Studio v17.6.5.
![image](https://github.com/dotnet/winforms/assets/45847465/a49bf62f-8b1e-4ebd-b3de-02d87c5a62e9)

### Issue description

Hi, I'm from DevExpress.
Our users encountered an issue where some of our components are not displayed in WinForms .NET OOP DesignTime. In our .NET Standard 2.0 libraries, we have custom inheritors of the Component class. This issue started in Visual Studio v17.8 (or earlier). After a little research, it appears to be related to the following tab: [https://github.com/microsoft/winforms-designer/pull/5231/](https://github.com/microsoft/winforms-designer/pull/5231/). To demonstrate the issue, we created a small example.

### Steps to reproduce

To reproduce it, follow these steps.
1. Download and unzip [NetStandardProblem.zip](https://github.com/dotnet/winforms/files/13498299/NetStandardProblem.zip).
2. Open the designer Form1.cs.
3. Make sure that MyComponent from ClassLibrary1 is not displayed in the toolbox.
![image2](https://github.com/dotnet/winforms/assets/45847465/41e882eb-5833-412a-88a7-6331b7104e14)

### Diagnostics

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.