T4MVC / R4MVC

R4MVC is a Roslyn code generator for ASP.NET Core MVC apps that creates strongly typed helpers that eliminate the use of literal strings in many places
Apache License 2.0
157 stars 48 forks source link

Ignor Controller Or Action #131

Closed rbsdotnet closed 5 years ago

rbsdotnet commented 5 years ago

Hi,

How to Ignor Controller Or Action to Generate?

artiomchi commented 5 years ago

Hi @rbsdotnet

You can use the [R4MVCExclude] attribute on actions or controllers to exclude them from R4Mvc generation.

You can see examples in the sample projects: https://github.com/T4MVC/R4MVC/blob/develop/samples/AspNetSimple/Controllers/TestsController.cs