From cf4662ab48b54158fbef04b8719622c40cfba2f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 14 Dec 2022 17:33:48 +0100 Subject: [PATCH] Fix module template Startup namespaces (#12896) --- .../content/OrchardCore.Templates.Cms.Module/Startup.cs | 5 +++++ .../content/OrchardCore.Templates.Mvc.Module/Startup.cs | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/Templates/OrchardCore.ProjectTemplates/content/OrchardCore.Templates.Cms.Module/Startup.cs b/src/Templates/OrchardCore.ProjectTemplates/content/OrchardCore.Templates.Cms.Module/Startup.cs index 7071761b9fb..0b40e707c44 100644 --- a/src/Templates/OrchardCore.ProjectTemplates/content/OrchardCore.Templates.Cms.Module/Startup.cs +++ b/src/Templates/OrchardCore.ProjectTemplates/content/OrchardCore.Templates.Cms.Module/Startup.cs @@ -1,4 +1,9 @@ +#if (AddPart) using Fluid; +#endif +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; #if (AddPart) using OrchardCore.ContentManagement; using OrchardCore.ContentManagement.Display.ContentDisplay; diff --git a/src/Templates/OrchardCore.ProjectTemplates/content/OrchardCore.Templates.Mvc.Module/Startup.cs b/src/Templates/OrchardCore.ProjectTemplates/content/OrchardCore.Templates.Mvc.Module/Startup.cs index 8156d86793d..ba43b11c947 100644 --- a/src/Templates/OrchardCore.ProjectTemplates/content/OrchardCore.Templates.Mvc.Module/Startup.cs +++ b/src/Templates/OrchardCore.ProjectTemplates/content/OrchardCore.Templates.Mvc.Module/Startup.cs @@ -1,3 +1,6 @@ +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Routing; +using Microsoft.Extensions.DependencyInjection; using OrchardCore.Modules; namespace OrchardCore.Templates.Mvc.Module