Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Could not find namespace Obi
#1
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
Reply
#2
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.
Reply
#3
Hi! Thanks for your help!
I had to add the references in Unity and I always tried to do it from Visual Studios!
Reply