Question by
The_Pied_Shadow · Jun 02, 2021 at 03:38 PM ·
c#packagepackagesexternal-toolsexternal-libraries
Unity "Type or namespace could not be found" with external NuGet package, no error in Visual Studios
I installed a NuGet package through Visual Studio into my project. In Visual studio I can reference the namespace that was part of the package, use it, intellicode works fine, no errors. But in the Unity console I get this error:
The type or namespace name '' could not be found (are you missing a using directive or an assembly reference?)
I saw some similar issue but the solutions seemed to be to add the dll to the asset folder. But I don't have the dll to put there, it's a NuGet package.
Any help or advice is appreciated. I can give more information if necessary I just don't know what is relevant. First time even using NuGet or external references like this.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613034515im_/https://answers.unity.com/themes/thub/images/avi.jpg)