Skip to content

Commit ff84a4a

Browse files
authored
Drop Blazor section until 5.x (#20318)
1 parent dfb27d8 commit ff84a4a

File tree

4 files changed

+29
-7
lines changed

4 files changed

+29
-7
lines changed

aspnetcore/blazor/components/class-libraries.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ Welcome to your new app.
104104

105105
Optionally, include the `@using ComponentLibrary` directive in the top-level `_Import.razor` file to make the library's components available to an entire project. Add the directive to an `_Import.razor` file at any level to apply the namespace to a single component or set of components within a folder.
106106

107+
<!-- HOLD for reactivation at 5.x
108+
107109
::: moniker range=">= aspnetcore-5.0"
108110
109111
To provide `Component1`'s `my-component` CSS class to the component, link to the library's stylesheet using the framework's [`Link` component](xref:blazor/fundamentals/additional-scenarios#influence-html-head-tag-elements) in `Component1.razor`:
@@ -136,6 +138,8 @@ When the `Link` component is used in a child component, the linked asset is also
136138
137139
::: moniker range="< aspnetcore-5.0"
138140
141+
-->
142+
139143
To provide `Component1`'s `my-component` CSS class, link to the library's stylesheet in the app's `wwwroot/index.html` file (Blazor WebAssembly) or `Pages/_Host.cshtml` file (Blazor Server):
140144

141145
```html
@@ -145,8 +149,12 @@ To provide `Component1`'s `my-component` CSS class, link to the library's styles
145149
</head>
146150
```
147151

152+
<!-- HOLD for reactivation at 5.x
153+
148154
::: moniker-end
149155
156+
-->
157+
150158
## Create a Razor components class library with static assets
151159

152160
An RCL can include static assets. The static assets are available to any app that consumes the library. For more information, see <xref:razor-pages/ui-class#create-an-rcl-with-static-assets>.

aspnetcore/blazor/fundamentals/additional-scenarios.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn about additional scenarios for ASP.NET Core Blazor hosting mo
55
monikerRange: '>= aspnetcore-3.1'
66
ms.author: riande
77
ms.custom: mvc
8-
ms.date: 08/12/2020
8+
ms.date: 10/27/2020
99
no-loc: ["ASP.NET Core Identity", cookie, Cookie, Blazor, "Blazor Server", "Blazor WebAssembly", "Identity", "Let's Encrypt", Razor, SignalR]
1010
uid: blazor/fundamentals/additional-scenarios
1111
---
@@ -284,6 +284,8 @@ window.addEventListener('pagehide', () => {
284284
});
285285
```
286286

287+
<!-- HOLD for reactivation at 5x
288+
287289
## Influence HTML `<head>` tag elements
288290
289291
*This section applies to the upcoming ASP.NET Core 5.0 release of Blazor WebAssembly and Blazor Server.*
@@ -315,6 +317,8 @@ When one of the framework components is used in a child component, the rendered
315317
* Can be modified by application state. A hard-coded HTML tag can't be modified by application state.
316318
* Is removed from the HTML `<head>` when the parent component is no longer rendered.
317319
320+
-->
321+
318322
::: moniker-end
319323

320324
## Static files

aspnetcore/blazor/host-and-deploy/webassembly.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ Use the following approaches for static assets:
273273
<img alt="..." src="_content/{LIBRARY NAME}/{ASSET FILE NAME}" />
274274
```
275275

276+
<!-- HOLD for reactivation at 5.x
277+
276278
::: moniker range=">= aspnetcore-5.0"
277279
278280
Components provided to a client app by a class library are referenced normally. If any components require stylesheets or JavaScript files, use either of the following approaches to obtain the static assets:
@@ -286,10 +288,16 @@ The preceding approaches are demonstrated in the following examples.
286288
287289
::: moniker range="< aspnetcore-5.0"
288290
291+
-->
292+
289293
Components provided to a client app by a class library are referenced normally. If any components require stylesheets or JavaScript files, the client app's `wwwroot/index.html` file must include the correct static asset links. These approaches are demonstrated in the following examples.
290294

295+
<!-- HOLD for reactivation at 5.x
296+
291297
::: moniker-end
292298
299+
-->
300+
293301
Add the following `Jeep` component to one of the client apps. The `Jeep` component uses:
294302

295303
* An image from the client app's `wwwroot` folder (`jeep-cj.png`).
@@ -322,6 +330,8 @@ Add the following `Jeep` component to one of the client apps. The `Jeep` compone
322330
> [!WARNING]
323331
> Do **not** publish images of vehicles publicly unless you own the images. Otherwise, you risk copyright infringement.
324332
333+
<!-- HOLD for reactivation at 5.x
334+
325335
::: moniker range=">= aspnetcore-5.0"
326336
327337
The library's `jeep-yj.png` image can also be added to the library's `Component1` component (`Component1.razor`). To provide the `my-component` CSS class to the client app's page, link to the library's stylesheet using the framework's [`Link` component](xref:blazor/fundamentals/additional-scenarios#influence-html-head-tag-elements):
@@ -355,6 +365,8 @@ An alternative to using the [`Link` component](xref:blazor/fundamentals/addition
355365
356366
::: moniker range="< aspnetcore-5.0"
357367
368+
-->
369+
358370
The library's `jeep-yj.png` image can also be added to the library's `Component1` component (`Component1.razor`):
359371

360372
```razor
@@ -380,8 +392,12 @@ The client app's `wwwroot/index.html` file requests the library's stylesheet wit
380392
</head>
381393
```
382394

395+
<!-- HOLD for reactivation at 5.x
396+
383397
::: moniker-end
384398
399+
-->
400+
385401
Add navigation to the `Jeep` component in the client app's `NavMenu` component (`Shared/NavMenu.razor`):
386402

387403
```razor

aspnetcore/toc.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -357,20 +357,14 @@
357357
href: blazor/forms-validation.md#built-in-forms-components
358358
- name: InputTextArea
359359
href: blazor/forms-validation.md#built-in-forms-components
360-
- name: Link
361-
href: blazor/fundamentals/additional-scenarios.md#influence-html-head-tag-elements
362360
- name: MainLayout
363361
href: blazor/layouts.md#mainlayout-component
364-
- name: Meta
365-
href: blazor/fundamentals/additional-scenarios.md#influence-html-head-tag-elements
366362
- name: NavLink
367363
href: blazor/fundamentals/routing.md#navlink-component
368364
- name: NavMenu
369365
href: blazor/fundamentals/routing.md#navlink-component
370366
- name: Router
371367
href: blazor/fundamentals/routing.md#route-templates
372-
- name: Title
373-
href: blazor/fundamentals/additional-scenarios.md#influence-html-head-tag-elements
374368
- name: Virtualize
375369
uid: blazor/components/virtualization
376370
- name: Cascading values and parameters

0 commit comments

Comments
 (0)