- Home /
Unable to find type or namespace of imported DLL
I downloaded the "smilenet-1.2.1-win64-academic" library from this page and imported the smileNET.dll in my Unity project. Then I restarted my visual studio, and when I tried to use the library, it gave me an error that the type or namespace could not be found. I tried using Smile;
and using smileNET;
as indicated in their documentation file Hello.cs but it did not work. I tried 64 bit version as well as 32 bit one.
When I inspected the downloaded dll, it said that the >NET version is v4.0.30319
while my VS2017 is running version 4.7.03056
, could that be a problem?
I also tried manually adding references. The option to add references was not appearing, so I clicked on Project>Referneces>Analyzers as shown below and then in the top menu clicked on Project>Add References
and then added the smileNET.dll file. Doing so fixed the error (temporarily). When I closed my VS it asked me if I want to save the changes to Chem-o-Crypt.sln Assesmbly-CSharp*
, so I said yes (although I doubt if it was really saved). But when I restarted my Visual Studio, I found that the reference was gone, and error popped up again. meh :/
Stackoverflow post here - https://stackoverflow.com/questions/54898629/unable-to-find-type-or-namespace-of-imported-dll
Your answer
Follow this Question
Related Questions
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
Include two of the same DLLs in one solution and Visual Studio 0 Answers
Issue with using external DLL build against .NET 4.0 2 Answers
DLL NOT FOUND EXCEPTION even after following procedure 0 Answers