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
public class HomeController : Controller
I get a red squiggle line and an error:
the type of namespace name 'Controller' could not be found".
Also, I can't seem to find the project.json
and csproj
files in my project.