Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Nowak <nowakra@gmail.com>2019-08-14 23:08:15 +0300
committerRyan Nowak <nowakra@gmail.com>2019-08-17 00:34:34 +0300
commitaafb0813e6175dc1af1e3beeca1747201f9c5a0c (patch)
treee4abd5f5f49f6ae6f0431be827907fb518b56750 /src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp
parent3b51b55176d85637742be6ab1259fc3f8820e56c (diff)
Rename DOM types and change namespace
Fixes: #12553 This change renames all of our browser/DOM specific types from `UIFooEventArgs` to `FooEventArgs` and puts the in the `.Web` namespace. In addition to this, we're moving `EventHandlers` and `BindAttributes` to the same. This has the impact of scoping the mappings those classes provide based on the `.Web` namespace. This means that we now expect `.Web` to be present as a using in basically all contexts for a browser-based Blazor app. Updated templates, samples and tests. I'll also need to update about a million tests in the compiler codebase. I've logged https://github.com/aspnet/AspNetCore.Docs/issues/13832 to track the docs and release notes part of this work.
Diffstat (limited to 'src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp')
-rw-r--r--src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/.template.config/template.json1
-rw-r--r--src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/_Imports.razor1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/.template.config/template.json b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/.template.config/template.json
index fb9217dbb3..7ce49de8a3 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/.template.config/template.json
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/.template.config/template.json
@@ -32,6 +32,7 @@
{
"condition": "(SupportPagesAndViews)",
"exclude": [
+ "_Imports.razor",
"Component1.razor",
"ExampleJsInterop.cs",
"wwwroot/**"
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/_Imports.razor b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/_Imports.razor
new file mode 100644
index 0000000000..77285129da
--- /dev/null
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/RazorClassLibrary-CSharp/_Imports.razor
@@ -0,0 +1 @@
+@using Microsoft.AspNetCore.Components.Web