Home > Blockchain >  In .Net 6, Controller class is not showing up. Instead an option is given to turn it into HomeContro
In .Net 6, Controller class is not showing up. Instead an option is given to turn it into HomeContro

Time:01-19

As you could see, in the image. I am not able to use the controller class as a base class to my HomeController.

enter image description here

Is there any update or should I change it to some other base controller?

CodePudding user response:

Your namespace ends with .Controller. This confuses the compiler to understand what class it wants to use. Rename your namespace and try again.

CodePudding user response:

Ensure your project references nuget package Microsoft.AspNetCore.App.Ref

  •  Tags:  
  • Related