Niraj Choubey
Niraj Choubey

Reputation: 4040

Loading third-party DLL in Visual Studio

I have two questions.

Question1:

How can we add a reference to a third-party DLL (like recaptcha) in a website/web app from a folder. The folder can be present anywhere like in the C: drive or inside the website/webapp's root directory.

Question2:

Is it possible to add a reference to a third-party DLL in a website/webapp by using app/web.config? I know it can be done if the DLL is added to GAC. Other than this method, is there is any there way?

Upvotes: 1

Views: 2288

Answers (1)

Andrew Hagner
Andrew Hagner

Reputation: 804

For your first question:

You can add it from within the project, open VS2010, in solution explorer under your projects 'references' folder, right click -> Add Reference -> Find the dll.

Then you just have to reference it from within your code. For example I use a telerik library and I refer to in via:

Front end:

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

Code:

using Telerik.Web.UI;

Upvotes: 3

Related Questions