L
localmini
Guest
I have a project where I develop some custom toolbox controls for Windows Forms, that are packed into a vsix file that I can use to install them in another Visual Studio solution.
If I install the vsix file in Visual Studio 2017, and then create a Windows Forms project for any .NET Framework version (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.7.2 or 4.8), my custom controls are available in the toolbox for all of them.
If I install the same vsix file in Visual Studio 2019, and then create a Windows Forms project for .NET Framework version 2.0, 3.0, 3.5 or 4.0, the custom controls are available in the toolbox. If I create a Windows Forms project for .NET Framework version 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.7.2 or 4.8, they are not available. If I go to "choose items" in the toolbox and try to remove them and then re-add them, Visual Studio tells me:
"The following controls were successfully added to the toolbox but are not enabled in the active designer:
…
Make sure the controls to add are compatible with the current designer and .NET Framework version."
Did something happen between Visual Studio 2017 and 2019, that puts requirements on custom controls that are to be used in .NET Framework 4.5 or later?
Continue reading...
If I install the vsix file in Visual Studio 2017, and then create a Windows Forms project for any .NET Framework version (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.7.2 or 4.8), my custom controls are available in the toolbox for all of them.
If I install the same vsix file in Visual Studio 2019, and then create a Windows Forms project for .NET Framework version 2.0, 3.0, 3.5 or 4.0, the custom controls are available in the toolbox. If I create a Windows Forms project for .NET Framework version 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.7.2 or 4.8, they are not available. If I go to "choose items" in the toolbox and try to remove them and then re-add them, Visual Studio tells me:
"The following controls were successfully added to the toolbox but are not enabled in the active designer:
…
Make sure the controls to add are compatible with the current designer and .NET Framework version."
Did something happen between Visual Studio 2017 and 2019, that puts requirements on custom controls that are to be used in .NET Framework 4.5 or later?
Continue reading...