views:

45

answers:

2

I made a class in C# that I am exposing to COM. I can register it just fine using RegAsm.exe.

I would like to test it before I send it off, but using TlbImp.exe gives me an error of "Type libaray was exported from a CLR assembly and cannot be re-imported as a CLR assemply."

What is a good way to test this?

+1  A: 

You can create a VB macros in word\excel\etc:

Dim obj As Object
Set obj = CreateObject("progid here")
Call obj.SomeMethodForTest()
Nagg
Thanks, this worked!
isorfir
A: 

Use PowerShell:

$myObj = new-object -comObject ProgId
Adam Driscoll
My COM object is called loggingAPI, how would I use powershell to load that?
isorfir
It's the same as with VB - `$myObj = new-object -comObject loggingAPI`
Adam Driscoll