0

When I start a new empty project there is an error in the .net core project:

Controller is a namespace but is used like a type.

Am I missing some packages?

poke
  • 369,085
  • 72
  • 557
  • 602
  • Also related: ['namespace' but is used like a 'type'](http://stackoverflow.com/questions/15007727/namespace-but-is-used-like-a-type) – poke Dec 05 '16 at 08:06

1 Answers1

0

You're right, you've missed Microsoft.AspNetCore.Mvc package. Just add it to project.json and things will be OK.

user3272018
  • 2,309
  • 5
  • 26
  • 48