views:

132

answers:

1

Lets say I want to include a DLL in a Visual Studio project that is not going to be a reference. In my case it will be a custom trace listener, but it might also be a DLL that I am loading via runtime binding. I don't want to add it as a reference because I don't want to introduce the possibility of any of my code statically referencing it by accident.

So if I add the dll to the project should I set the build action to "None" or "Component." I set the "Copy To Output Directory" property to "Copy Always"

+1  A: 

"Content" may be more appropriate, since I believe that includes it by default when you publish the project, be it via msi (installer) or ClickOnce.

Marc Gravell
(revised to "Content")
Marc Gravell
@Marc, I think your right. Waiting a day or two for additional feedback before I mark your answer as the accepted one.
Justin Dearing