Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Custom Scaffolding Razor Pages

$
0
0

Hello,

I'm trying to create a new template to create my view's.

I'm using VS 2017 .Net Core 2.0.1,

I know the templates are located in
C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.visualstudio.web.codegenerators.mvc\2.0.1\Templates

I created a new file named Add.cshtml inside the templates folder and I am generating.

dotnet.exe aspnet-codegenerator --project . --no-build view Add Add --force --model CategoryPerson --dataContext ContextOnlyGClasse --relativeFolderPath Views\CategoryPerson --useDefaultLayout

But I get the error
The template name 'Add' is not valid. Supported view templates: 'Empty | Create | Edit | Delete | Details | List' "

In .Core 1.1 I could create without any problem, this version will not be possible?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>