Obi Official Forum
Could not find namespace Obi - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: General (https://obi.virtualmethodstudio.com/forum/forum-5.html)
+--- Thread: Could not find namespace Obi (/thread-2698.html)



Could not find namespace Obi - MonaGermany - 13-01-2021

Hello!

I have more than one Project in my Visual Studio Solution. In the first Project I can work with Obi just normally and everything works fine. But in the other Projects I can't use it. I added the references Obi.dll and ObiEditor.dll there per hand and afterwards I don't get Errors in Visual Studio any more. 
The Problem is, that Unity always shows me this Error: 
error CS0246: The type or namespace name 'Obi' could not be found (are you missing a using directive or an assembly reference?)
I really tried out different things to solve this Problem, but nothing worked so far.

Thanks in advance for your help!

Greetings
Mona


RE: Could not find namespace Obi - josemendez - 13-01-2021

Hard to say for sure what the cause is without taking a closer look at project setup. Based on the symptoms alone, maybe the Obi assembly definition is not referenced by the predefined assembly definition in your other projects? It's auto-referenced though, so it *should* be. See:

https://docs.unity3d.com/Manual/ScriptCompilationAssemblyDefinitionFiles.html

The Obi.asmdef file can be found in /Obi/Scripts.


RE: Could not find namespace Obi - MonaGermany - 20-01-2021

Hi! Thanks for your help!
I had to add the references in Unity and I always tried to do it from Visual Studios!