Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use external libraries in Visual studio? [closed]

Tags:

c#

windows

xaml

I wanted to try to use external libraries, and use them within Visual Studio. How could I do? I downloaded from the website of the libraries NAudio, to break an MP3 file, and contains files .dll..come use classes within the project c #?

like image 555
missenna Avatar asked Nov 23 '25 01:11

missenna


2 Answers

Right click on references and select "Add Reference"

Then in the dialogue select 'browse' and find the .dll you need on your file system:

screenshot

[UPDATE] As others have said in comments its generally easier to resolve dependancies and update external libs if you can use NuGet for your external libraries rather than downloading the .dll directly - a brief intro to using NuGet from Visual Studio can be found here:

http://docs.nuget.org/docs/start-here/managing-nuget-packages-using-the-dialog

like image 52
Stewart_R Avatar answered Nov 25 '25 16:11

Stewart_R


right click on your project in the solution explorer -> add reference -> choose your dll files; after that try usin on the top of your class code, but the dlls should have been wrote with one of .NET languages

like image 31
nil Avatar answered Nov 25 '25 14:11

nil



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!