Interop.Shell32.dll

G

Guest

Hi,

A I use shell functions in my C# project, I need to add a reference to
shell32.dll. When I browse to shell32.dll and add it as a reference to my
project a file called Interop.Shell32.dll is created in the directory of the
executable. When I delete this file, the program crashes (as expected)
because it cant find it. My question is:
How do I avoid having this file lingering around? I know it is necessary for
my program but I want to distribute to customers the executable only and no
additional files. Is there a way to embed Interop.Shell32.dll somehow in the
executable image?

Thanks
 

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