Csc.exe and referencing a COM object

D

Dave

Hi,

I'm using the "Microsoft DTSPackage Object Library" COM
object in my C# class which works fine when I run the
project in debug mode. However, when I try to compile
the assmembly using the C# command line compiler
(csc.exe) I don't know how to include or reference the
COM object.

Typically I would include namespace references using /r:
switch but this doesn't work.

Dave
 
A

Arild Bakken

You need to use the /r switch and reference the interop wrapper library
generated by tlbimp. Is that what you tried?

Arild
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top