VB.Net - Getting 3rd party dll into realease folder and when publishing

Hi Experts
I have a third party dll which I have added as a reference in Properties/References.  Everything works fine at runtime. I notice when I do a Release build and publish to a folder, this dll is not included.    What is the best way of ensuring this.   If I copy it manually in to the folder, would I not have to change the path in References or will the exe find it by default in the folder that itself is in.   Can I add it as a file and - Always Copy?  What is the best way?    Many thanks
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lokesh B RDeveloperCommented:

1. Right Click on the third party reference in your References list.
2. Click properties and Set Copy Local = "True"
3. Rebuild and re deploy.


Remove the existing reference of external dll and follow the below steps to include the dll when publish.

1. Create a folder called "Lib" in your solution.
2. Add the external DLL to that fodler.
3. Add References and select the dll from the Lib folder.
4. Click Ok.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.