Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Missing type/namespace in ASP.NET Core MVC

$
0
0

I've created an empty ASP.NET Core Mvc project in visual studio for Mac, added a few dependencies

  • Microsoft.AspNetCore.Mvc (1.1.2)
  • Microsoft.AspNetCore.Mvc.Core (1.1.2)

and also imported the namespaces. However, when I create a new 

HomeController
 class and try to inherit from the 
Controller
 class
publicclassHomeController:Controller

I get a red squiggle line and an error:

the type of namespace name 'Controller' could not be found".  Here is the image http://imgur.com/a/Ntpjm


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>