Obi Official Forum

Full Version: Could not find namespace Obi
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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/ScriptCo...Files.html

The Obi.asmdef file can be found in /Obi/Scripts.
Hi! Thanks for your help!
I had to add the references in Unity and I always tried to do it from Visual Studios!