Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio - Referencing third party DLL

I am using Visual Studio 10 within a C# MVC appliction.

I have a qustion on a .dll reference. I am using a third party reference called Ionic.Zip.dll. What I am not sure about is that it currently points to a location on my C: drive. How and what is the best practice for me to put this .dll so that when I check in the project, others can also see this .dll without it blowing up.

Thanks

like image 626
Nate Pet Avatar asked Dec 21 '12 20:12

Nate Pet


People also ask

How do I reference a DLL in Visual Studio C++?

In Visual C++, click the Browse tab in the Add References dialog box. Click Browse, locate the component that you want on your local drive, and then click OK. The component is added to the Selected Components field.

What is a third party DLL?

Third party DLLs are libraries created by other organisation outside of yours. You can use these third party DLLs by putting them into a folder in your solution and then creating a reference to it (Project-> Right Click-> Add Reference). Once you have the DLL, that DLL will have a namespace.


2 Answers

I would typically put a Library folder in my application structure, place the 3rd party dll in that folder, and then reference that dll. Then ensure that the library folder is checked into your source control. Now, anyone that pulls your source will have the required dll.

like image 107
czuroski Avatar answered Oct 09 '22 21:10

czuroski


Even easier...simply add a reference to DotNetZip via NuGet, the Visual Studio Package Manager:

http://nuget.org/packages/DotNetZip

And you shouldn't have to worry about it.

like image 2
Nicholas Carey Avatar answered Oct 09 '22 23:10

Nicholas Carey