From 60a8f2348e09f577b05568aba6ee6e5c9e4d4e81 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Mon, 1 Jul 2019 09:47:32 +0100 Subject: [PATCH] Add usings to Razor Components template. Fixes #11687 --- .../content/RazorComponentsWeb-CSharp/Startup.cs | 1 + .../content/RazorComponentsWeb-CSharp/_Imports.razor | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Startup.cs b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Startup.cs index 7b1b0ab23c..5929c981f2 100644 --- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Startup.cs +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Startup.cs @@ -16,6 +16,7 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authentication.AzureADB2C.UI; #endif using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Components; #if (IndividualLocalAuth) using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Identity.UI; diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/_Imports.razor b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/_Imports.razor index 0a447340cc..c62947785a 100644 --- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/_Imports.razor +++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/_Imports.razor @@ -1,4 +1,5 @@ @using System.Net.Http +@using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Components.Forms @using Microsoft.AspNetCore.Components.Layouts @using Microsoft.AspNetCore.Components.Routing