title: ASP.net MVC missing a using directive or an assembly reference
body: <p>Hi I am following a guide to learn Asp.net MVC5.
  I have created solution with three project and with NuGet i have installed this library:</p>
  
  <blockquote>
    <p>Install-Package Ninject -projectname SportsStore.WebUI</p>
    
    <p>Install-Package Ninject.Web.Common -projectname SportsStore.WebUI</p>
    
    <p>Install-Package Ninject.MVC5 -projectname SportsStore.WebUI</p>
    
    <p>Install-Package Ninject -projectname SportsStore.UnitTests</p>
    
    <p>Install-Package Ninject.Web.Common -projectname SportsStore.UnitTests</p>
    
    <p>Install-Package Ninject.MVC5 -projectname SportsStore.UnitTests</p>
    
    <p>Install-Package Moq -projectname SportsStore.WebUI</p>
    
    <p>Install-Package Moq -projectname SportsStore.UnitTests</p>
    
    <p>Install-Package Microsoft.Aspnet.Mvc -projectname SportsStore.Domain</p>
    
    <p>Install-Package Microsoft.Aspnet.Mvc -projectname
    SportsStore.UnitTests</p>
  </blockquote>
  
  <p>Then i have added reference and i had this:</p>
  
  <p><a href="https://i.stack.imgur.com/kMpHp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kMpHp.png" alt="enter image description here"></a></p>
  
  <p>I have problem with class NinjectDependencyResolver.cs precisly into method AddBindings():</p>
  
  <pre><code>private void AddBindings() {
          Mock&lt;IProductRepository&gt; mock = new Mock&lt;IProductRepository&gt;();
          mock.Setup(m =&gt; m.Products).Returns(new List&lt;Product&gt; {
                      new Product { Name = "Football", Price = 25 },
                      new Product { Name = "Surf board", Price = 179 },
                      new Product { Name = "Running shoes", Price = 95 }
                      });
          kernel.Bind&lt;IProductRepository&gt;().ToConstant(mock.Object);
  
      }
  </code></pre>
  
  <p>where I have binded my Interface IProductRepository and my class Products to Mock. I reiceived this error:</p>
  
  <blockquote>
    <p>missing a using directive or an assembly reference</p>
  </blockquote>
  
  <p>I have checked into reference of SportsStore and I noticed that the reference were already there. </p>
  
  <p>I have tried to import class with using:</p>
  
  <pre><code>using SportsStore.Domain.Abstract;
  using SportsStore.Domain.Entities;
  </code></pre>
  
  <p>but didn't work, furthermore when i typed SportsStore intellisense suggested me the folder Abstract, therefore i had SportsStore.Abstract but then intellisense when I have put dot after Abstract it didn't suggest me nothing, it seemed like intellisense didn't find Interface IProductRepository. The same thing is happened when i have typed SportStore.Entities, intellisense didn't suggest me class Product why?
  Why i had error:  missing a using directive or an assembly reference?</p>
  
  <p>I have tried:</p>
  
  <p>Clean Project and then Build or Rebuild project but didn't work.</p>