Description
This request is a follow-up to #62529 that improved the default naming of the ComHost server name in the registry based on the ProgID in .Net 7.0. The COM class name in registry is now always <namespace>.<class-name>
(e.g. "MyNamespace.MyClass"). This is a good default, but it would still be beneficial to also have a mechanism to allow customizing this name, so that the class can e.g. be named "My class".
ASK: Could it be possible to use the [Description("..")]
attribute or similar for overriding the ComHost server registry name?
Background: I'm working on a plugin-based SW architecture that uses COM class names in the registry for plugin identification. Providing an ability to customize the name would enable improved plugin naming when using .Net for the implementation.
Steps to reproduce
- Open the https://github.com/dotnet/samples/tree/main/core/extensions/COMServerDemo/COMServer project
- Upgrade to Target Framework ".NET 7.0"
- Build the COMServer project
- Register COMServer.comhost.dll with regsvr32.exe
- Open RegEdit.exe and observe that the server name is "COMServer.Server" ("CoreCLR COMHost Server" if using .Net 6) in the Computer\HKEY_CLASSES_ROOT\CLSID\{DB1797F5-7198-4411-8563-D05F4E904956} registry folder:
Metadata
Metadata
Assignees
Type
Projects
Status