I am trying to add a DLL to Visual Studio 2019 and after enabling CLR I went into the References tab then Add Reference then Browse. Here I found my DLL file and tried adding it, but I get an error saying, "Could not add a reference to "path" as it is not a type or version current project can use." This file is in fact a DLL file but what is wrong? How can I get Visual Studio to accept DLL files?
I would also like to note that I cannot actually leave CLR on when compiling my project in plain C since I get errors. However, I assume I can turn CLR on and then add my reference and then turn CLR off and then compile. But this won't be an issue till I figure out the bug stated in the first paragraph.