title: 'Controller' is a namespace but is used like a type error on compiling an ASP.NET core application
body: <p>I have an empty asp.net core app. I have added a controller to the application. When I try to compile the application it throws the below error </p>
  
  <p>'Controller' is a namespace but is used like a type</p>
  
  <p>The source is below</p>
  
  <p><a href="https://i.stack.imgur.com/xjq4e.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xjq4e.jpg" alt="enter image description here"></a></p>
  
  <p>However if I prefix Controller with the namespace as shown below then it works fine.</p>
  
  <p><a href="https://i.stack.imgur.com/oumRm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oumRm.jpg" alt="enter image description here"></a></p>
  
  <p>Why is this ?</p>