Fix to RegAsm: Warning RA0000: No Types Were Registered

You may get this warning when you try to register an assembly using RegAsm. If you need to know more about RegAsm, you can see it here.

Solution to “RegAsm : warning RA0000 : No types were registered”

Go to your AssemblyInfo.cs. You can see that class under property.

AssemblyInfo.cs

What is AssemblyInfo.cs?

Basically AssemblyInfo.cs is used to document all of the dll’s or exe’s you have in your project. It can include information about where the codes come from and the version details. You can always check here for more information regarding AssembleInfo class file.

Open the file and search for ComVisible. You can see ComVisible has been set to false as follows:

[assembly: ComVisible(false)]

Setting ComVisible to false makes the types in this assembly not visible to COM components. If you need to access a type in this assembly from COM, set the ComVisible attribute to true on that type.

Code

Now if you run your command with RegAsm, you will not get this warning.

Please check this article in my blog here.

Conclusion

Did I miss anything that you may think is needed? Did you find this post useful? I hope you liked this article. Please share with me your valuable suggestions and feedback.

Your turn. What do you think?

A blog isn’t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, ASP.NET Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I can.