Register missed directives in RazorPageGenerator
This commit is contained in:
parent
881fb49f73
commit
adc7184d98
|
|
@ -7,6 +7,7 @@ using System.IO;
|
|||
using System.Linq;
|
||||
using System.Text;
|
||||
using Microsoft.AspNetCore.Razor.Language;
|
||||
using Microsoft.AspNetCore.Razor.Language.Extensions;
|
||||
|
||||
namespace RazorPageGenerator
|
||||
{
|
||||
|
|
@ -60,6 +61,10 @@ Examples:
|
|||
@class.Modifiers.Add("internal");
|
||||
});
|
||||
|
||||
FunctionsDirective.Register(builder);
|
||||
InheritsDirective.Register(builder);
|
||||
SectionDirective.Register(builder);
|
||||
|
||||
builder.Features.Add(new SuppressChecksumOptionsFeature());
|
||||
builder.Features.Add(new SuppressMetadataAttributesFeature());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue