0

I'm trying to add the Libspotify SDK to a test solution. However, I got the following error:

enter image description here

Now, I tried following the first answer of this question. However, all I got was:

enter image description here

The package of the library is structured in the following way:

enter image description here

Additionaly, my project is targeted to .NET Framework 4.0

And the configuration is done as follows:

enter image description here

What can I do to add this library?

EDIT:

Also, I found this link where someone explains that it need to be copied manually into the project output directory. I tried putting the .dll there, but I guess I have to modify something else to make it work. Any ideas?

Community
  • 1
  • 1
Luis Lavieri
  • 4,064
  • 6
  • 39
  • 69

1 Answers1

2

The libspotify.dll you are trying to access is a Win32 C library, not a C# (.NET) assembly. As such, you can only use it through interop.

You don't have to do this yourself (judging by your question I'm assuming you have no previous experience with the techniques involved), you can use a ready-made solution like libspotify.NET.

Paul-Jan
  • 16,746
  • 1
  • 63
  • 95