title: Namespace from NuGet package reference canot be found in Controller
body: <p>I'm trying to use the <a href="https://github.com/AfterShip/aftership-net" rel="nofollow">Aftership</a> SDK in ASP.Net 5 Beta 3 but even though I've added it as a dependency I still get the following error:</p>
  
  <pre><code>Microsoft.Framework.Runtime.Roslyn.RoslynCompilationException:
    ~/myproject/Controllers/PackagesController.cs(5,7): 
        error CS0246: The type or namespace name 'Aftership' could not be
        found (are you missing a using directive or an assembly reference?)
  </code></pre>
  
  <p>All of the related SO questions say to remove the CoreCLR framework reference from the <code>packages.json</code> file, but I've already done that:</p>
  
  <pre><code>{
      "webroot": "wwwroot",
      "exclude": "wwwroot/**/*.*",
      "dependencies": {
          "Microsoft.AspNet.Server.IIS":"1.0.0-beta3",
          "Microsoft.AspNet.Mvc": "6.0.0-beta3",
          "Microsoft.AspNet.Hosting": "1.0.0-beta3",
          "Microsoft.AspNet.Security.Cookies": "1.0.0-beta3",
          "Microsoft.AspNet.Server.WebListener": "1.0.0-beta3",
          "Microsoft.AspNet.StaticFiles": "1.0.0-beta3",
          "Kestrel": "1.0.0-beta3",
          "Aftership": "4.0.8"
      },
      "commands": {
          "web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.urls http://localhost:5001",
          "kestrel": "Microsoft.AspNet.Hosting --server Kestrel --server.urls http://localhost:5004"
      },
      "frameworks": {
          "aspnet50": { }
      }
  }
  </code></pre>
  
  <p>My controller code is standard:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using Microsoft.AspNet.Mvc;
  using Mirror.Models;
  using Aftership;
  using System.Linq;
  
  namespace Mirror.Controllers
  {
      public class PackagesController : Controller
      {
          public IActionResult Index()
          {        
              return View(GetPackages());
          }
  
          private List&lt;Package&gt; GetPackages()
          {
              var packages = new List&lt;Package&gt;();
  
              var conn = new ConnectionAPI("...");
              ...
          }
      }
  }
  </code></pre>
  
  <p>After running <code>kpm restore</code> I can find the library located in my packages directory under: <code>~/.k/packages/Aftership/4.0.8/lib/net40/Aftership-API.exe</code></p>
  
  <p>Could the issue be due to the Aftership library providing an exe rather than an appropriately named <code>Aftership.dll</code>? I have tried to rename the file, but no success...</p>