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"
"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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With