taking advantage of the @Lucianoazevedo tip when this happens, put the cursor in the class name and press CTRL+. (dot) and VS will suggest the missing namespace (if it does not appear you may be missing include the Assembly reference in the project or the class name may be wrong)
strange to be missing in this case, especially if you created the project from the application template Asp.net mvc... tries to go in the package manager nuget and search for Microsoft.AspNet.Mvc if it appears option to install, install
already tried to put in using System.Web.Mvc; ?
– Luciano Azevedo
taking advantage of the @Lucianoazevedo tip when this happens, put the cursor in the class name and press CTRL+. (dot) and VS will suggest the missing namespace (if it does not appear you may be missing include the Assembly reference in the project or the class name may be wrong)
– JMSlasher
I put using System.Web.Mvc also does not work and in CTRL+. (dot) follows nothing but make the synchronous method
– DonRuan
What would be the Assembly reference that I should add @Jmslasher
– DonRuan
strange to be missing in this case, especially if you created the project from the application template Asp.net mvc... tries to go in the package manager nuget and search for Microsoft.AspNet.Mvc if it appears option to install, install
– JMSlasher
Have you tried referencing "Microsoft.AspNetCore.Mvc" ?
– JoaoPaulo