none
Could not add a reference to ------ as it is not of a type or version current project can use."

    Question

  • "One or more errors occured.

    Could not add a reference to xxxxxxx as it is not of a type or version current project can use."

    ------------------------------------------------------

    Hi, so I've been trying to add and use a dll to one of my projects.

    I tried to follow this guide : https://msdn.microsoft.com/en-CA/library/ms235636.aspx

    And also I tried to build and use this: https://github.com/signal11/hidapi  (the windows/.sln file) which builds to a .dll successfully..

    In both cases I end up with a successful built .dll,

    but when I try to add the reference to my project. After selecting the dll, I get the error message mentioned on top. I have no idea what I'm doing wrong or how to fix this. Any help would be greatly appreciated

    Thursday, August 04, 2016 1:18 PM

Answers

  • To add a reference to a DLL, that DLL must be either a .NET DLL or a COM DLL. Not all DLL's can be referenced.
    • Marked as answer by jess169 Thursday, August 04, 2016 4:19 PM
    Thursday, August 04, 2016 3:32 PM

All replies