E
Eric St-Onge
Hi all,
I have a C# DLL containing only interfaces that I want to have a TLB (type
library) generated for.
For that I use the "Register for COM Interop" compiler option but it gives
me the error
*******************
Building satellite assemblies...
Registering project output for COM Interop...
COM Interop registration failed. There are no registrable types in the built
assembly.
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
*******************
Even with this error my TLB was well generated but it makes my build script
think that the build didn't succeed, which is not acceptable for me.
I understand why this is happening: this is because there are no types in my
assembly that are creatable. But that shouldn't lead to an error but rather
to a simple warning?? right? (please correct me if I am wrong)
Anybody knows a workaround so that my TLB will get generated and my build
result will not be a failure?
(from what I remember back in time using VB6 and VC6, it was acceptable to
have COM DLLs composed uniquely of "PublicNonCreatable" COM objects...)
Thanks
Eric
I have a C# DLL containing only interfaces that I want to have a TLB (type
library) generated for.
For that I use the "Register for COM Interop" compiler option but it gives
me the error
*******************
Building satellite assemblies...
Registering project output for COM Interop...
COM Interop registration failed. There are no registrable types in the built
assembly.
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
*******************
Even with this error my TLB was well generated but it makes my build script
think that the build didn't succeed, which is not acceptable for me.
I understand why this is happening: this is because there are no types in my
assembly that are creatable. But that shouldn't lead to an error but rather
to a simple warning?? right? (please correct me if I am wrong)
Anybody knows a workaround so that my TLB will get generated and my build
result will not be a failure?
(from what I remember back in time using VB6 and VC6, it was acceptable to
have COM DLLs composed uniquely of "PublicNonCreatable" COM objects...)
Thanks
Eric