I have created an WEB API in ASP NET 5 and I can reference an external Class Library vNext. I am working on Visual Studio 2015 Community. In that Library I have this controller:
You don't need anything special to allow your external class library to be discovered by IControllerTypeProvider
as long as you comply with the requisites:
(Source)
In your particular case, I think you just need to remove the Route
annotation, since it doesn't looks right.
using Microsoft.AspNet.Mvc;
using System.Collections.Generic;
namespace External.Controllers
{
[Route("api/[controller]")]
public class NovosController: Controller
{
[HttpGet]
public IEnumerable<string> Get()
{
return new string[] { "I am", "an external library" };
}
}
}