You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When you add a controller and you use Microsoft.AspNetCore.Mvc library for your dependency, the using statement on the newly created file is missing, and the controller base is also missing.
To Reproduce
Steps to reproduce the behavior:
Add Microsoft.AspNetCore.Mvc to dependencies on the project that you will create the controller file on.
Add a controller file
file will be missing the using statement for Microsoft.AspNetCore.Mvc and controller from base
Expected behavior
the controller file should be
using Microsoft.AspNetCore.Mvc;
namespace ConsoleApp1.Controllers
{
public class NameController : Controller
{
}
}
Screenshots
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
cbonezzi
changed the title
Add missing Microsoft.AspNetCore.Mvc.Core reference for controller template
Add missing Microsoft.AspNetCore.Mvc reference for controller template
Nov 14, 2022
Describe the bug
When you add a controller and you use Microsoft.AspNetCore.Mvc library for your dependency, the using statement on the newly created file is missing, and the controller base is also missing.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
the controller file should be
Screenshots
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: