Visual Studio not respecting ASP.NET Core Templates

Asked

Viewed 75 times

1

I have a project ASP.NET Core 2.2 And within the project I have the Templates folder that has my Custom Scanfolding, for some reason it stopped working, I used it a lot. Today after several updates of Packages, it no longer works.

The Controller is even created correctly using the project template, but the views are not. For testing, I updated the entire List.cshtml of my computer by putting one Create New 1,2,3 for each version I found, I had a new file created and did not use any of the more than 8 sites found (has no users nuget etc has also in c: programFile etc and various versions 2.0, 2.1, etc)

Does anyone have any suggestion that pq no longer use Template Views?

Update:

Visual Studio 2019 16.0.2

Target framework: 2.2

Microsoft.AspNetCore.App: 2.2.0

Microsoft.VisualStudio.Web.CodeGeneration.Design 2.2.3

  • What version of Microsoft.VisualStudio.Web.CodeGeneration.Tools? The templates are here: C: Users<usuario>. nuget Packages microsoft.visualstudio.web.codegenerators.mvc

  • See that I already changed there tbm.. alias I changed everywhere I had a List.cshtml on my PC

1 answer

0


I found that as my project was created with the .core 1.0 and after updates of . net

the folder was missing

Templates\ViewGenerator_Versioned\Bootstrap3

So before he wore the \Templates\ViewGenerator which has been replaced by the above.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.