Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing Microsoft.AspNetCore.Mvc reference for controller template #136

Open
cbonezzi opened this issue Nov 14, 2022 · 0 comments
Open
Labels

Comments

@cbonezzi
Copy link

cbonezzi commented 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:

  1. Add Microsoft.AspNetCore.Mvc to dependencies on the project that you will create the controller file on.
  2. Add a controller file
  3. 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.

@cbonezzi cbonezzi added the bug label Nov 14, 2022
@cbonezzi 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant