title: Controllers are not found in ASP.NET core in console application
body: <p>I'm trying to get a a simple asp.net core projection set with just a basic configuration and a controller working but no avail so far. I did use the code from the web template project to create a new console project but no controllers are found.</p>
  
  <p>Here is what the project looks like so far:</p>
  
  <p><a href="https://i.stack.imgur.com/rH3TC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rH3TC.png" alt="Project structure"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Eurjq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Eurjq.png" alt="Console output"></a></p>
  
  <p><a href="https://i.stack.imgur.com/x8IAa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x8IAa.png" alt="Route not found"></a></p>
  
  <pre><code>public class Program
  {
      public static void Main(string[] args)
      {
          CreateWebHostBuilder(args).Build().Run();
      }
  
      public static IWebHostBuilder CreateWebHostBuilder(string[] args) =&gt;
          WebHost.CreateDefaultBuilder(args)
              .UseStartup&lt;Startup&gt;();
  }
  
  public class Startup
  {
      public void ConfigureServices(IServiceCollection services)
      {
          services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
      }
  
      public void Configure(IApplicationBuilder app, IHostingEnvironment env)
      {
          app.UseMvc();
      }
  }
  
  [ApiController]
  public class TestController : ControllerBase
  {
      [HttpGet]
      [Route("Test")]
      public ActionResult&lt;string&gt; Get()
      {
          return "Hello world!";
      }
  }
  
  //appsettings.json
  {
    "Logging": {
      "LogLevel": {
        "Default": "Warning"
      }
    },
    "AllowedHosts": "*"
  }
  </code></pre>
  
  <p>I'm missing something very obvious here but can't figure it out, any help is welcome.</p>
  
  <p>Thanks</p>
  
  <p><em>UPDATE 1</em></p>
  
  <p><a href="https://i.stack.imgur.com/zOjQZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zOjQZ.png" alt="As per comment, trying http://localhost:5000/test/get"></a></p>
  
  <p><em>UPDATE 2</em></p>
  
  <p><a href="https://i.stack.imgur.com/eznpN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eznpN.png" alt="As per Damir&#39;s comment"></a></p>