views:

30

answers:

2

I am introducing a new namespace called Ebot.Mind for the class Cat

namespace Ebot.Mind
{
  class Cat
  {
  }
}

Now I've a one using namespace called Mind.Logging,

namespace Ebot.Mind
{
 using Mind.Logging;
  class Cat
  {
  }
}

Now when I am trying to use any functionality under Mind.Logging namespace, it is not able to find it.

I've never dealt with such problem.

How can it be fixed?

A: 

Is Mind.Loggin located in a separate assembly? If yes you'd need to add a reference to that assembly.

As InSane points out you could also try setting an alias on Mind.Logging if there is a problem with some confusion with Ebot.Mind and Mind.Logging.

Sani Huttunen
tried but did not worked well!
Amit
A: 

I think the compiler is trying to find the namespace "Mind.Logging" under the namespace "Ebot.Mind" and so he can't find it.

To fix it, try to put "using Mind.Logging;" above the namespace declaration like this :

using Mind.Logging;
namespace Ebot.Mind
{
...
}
GuidEmpty
Nope! did not worked!
Amit