Is the error message you encountered like this:
According to this information, it seems that the designer mistakenly confused two classes with the same name.
Please try adding it manually to see if it works:
private void Form1_Load(object sender, EventArgs e)
{
myComponent1 = new MyComponent();
this.myComponent1.LocalProperty = "Component Property Value";
}
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
@Atmapuri
Does this issue only occur in .Net 5?
Then I think you'd better go to the GitHub repository below to ask an issue, which may not be solved by programming.
.NET 5 Preview 5