Register dll - GUIDs not found in the registry

I have C # -dll, and registering through regasm tells me about success, but the GUIDs are not added to the registry, and therefore the component cannot be used anywhere. and I just have no idea why :(

class attributes:

[ProgId( "blup" )]
[ClassInterface( ClassInterfaceType.None ), ComSourceInterfaces( typeof( blap ))]
[Guid( "0CFEF92B-A155-4353-B7A3-58A717193E0C" )]
[ComVisible( true )]
public class blup
...

interface attributes:

[Guid( "9FD1B3E5-4873-403a-91AA-2EEC7296B38D" )]
[InterfaceType( ComInterfaceType.InterfaceIsIDispatch )]
[ComVisible ( true )]
public interface blap
...

AssemblyInfo.cs:

...
[assembly: ComVisible( true )]
[assembly: Guid("37639A04-9DAC-40ee-ADBB-2F07F78FD265")]
...

to make the assembly com-visible set to true. registration for com-interop ist is set to false, since I do not want it to register with every build.

registration through regasm / codebase → success. registration through regasm / codebase / tlb → success.

but in both cases, I can not find any of my GUIDs in the registry.

adding the / regfile option to regasm, the file is generated, but consists of only lines:

[HKEY_CLASSES_ROOT\Record\{D4DAB0A5-AC0A-3498-BD1E-6665735B5649}\1.3.3.7]
"Class"="<classname>+eventType"
"Assembly"="<name>, Version=1.3.3.7, Culture=neutral, PublicKeyToken=bba2258cd5ab986c"
"RuntimeVersion"="v2.0.50727"
"CodeBase"="file:///<filename>"

GUID regfile vs-. - , , - visual studio 2008 Windows 7 64.

. , , , !

+3
2

, 32- 64- . - .dll 64- , 32- regedit .

0

. , , .

, :

regasm /codebase /tlb Mylib.dll

. , , , /tlb.

0

Source: https://habr.com/ru/post/1757795/


All Articles