![]() ![]() End result is no designer functionality.Īside from the workaround of installing to the GAC, I have verified that adding the following registry key (not in the "WOW6432Node") will also work to inform Visual Studio 2022 where to find the design assemblies. When the designer attempts to find the design assemblies, it can't find the sub-folder and also can't find an entry in the registry to tell it where those assemblies are. I'm not 100% certain on this, but I believe Visual Studio 2022 creates "shadow copies" of assemblies to be used for the designer, and it must only be copying our control assemblies without also copying the design assemblies into a "Design" sub-folder. When you install the assemblies to the GAC, those assemblies get used by the designer and it finds the corresponding design assemblies in the "Design" sub-folder. It appears, however, that they have not applied a similar work-around for resolving the design assemblies. Since our control assemblies are still loading properly in the Toolbox, Microsoft at least worked around part of this. Now that Visual Studio is 64-bit when it reads the registry, it is not reading from the "WOW6432Node" like it did with Visual Studio 2019 and prior versions. ![]() HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v9\AssemblyFolersEx Since our installer is a 32-bit process running on a 64-bit host, the registry keys actually get virtualized and created at the following key instead of the one above: It also tells Visual Studio where to find the design assemblies that correspond to our control assemblies. The sub-keys in that folder instruct Visual Studio where to find our assemblies and how they should be loaded in the Visual Studio Toolbox. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v9\AssemblyFolersEx When our controls are installed, we add several registry entries under the following key: NET Framework, it also has a 64-bit IDE for the first time. Not only does it have totally different designers for. The WinForms designer story gets really messy with Visual Studio 2022. Thank you for reporting this and providing the steps to reproduce. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |