How do you develop a C# dll in Visual Studio 2010 that can be registered on another pc via regasm? [duplicate]

StackOverflow https://stackoverflow.com/questions/13161384

  •  23-07-2021
  •  | 
  •  

Question

Possible Duplicate:
regasm RA0000: No types were registered

I have a fairly simple component, strongly named and built into a dll file.

I give that file to a co-worker to register on his Windows 7 machine.

He uses the command: (from the location he has copied the file to)

regasm mycontrol.dll

And gets the reply

RegAsm : warning RA0000 : No types were registered.

Why?

Was it helpful?

Solution

Has anyone actually developed a C# dll in Visual Studio 2010 that could be registered on another pc via regasm?

Yes, someone has done it.

Look at the documentaion on creating an interop DLL to see if there's a step you may have missed. A common problem is forgetting to set the ComVisible property to true in assemblyInfo.cs.

Some key sections:

Packaging an Assembly for COM

Qualifying .NET Types for Interoperation

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top