Skip to content

Commit 6e6fe9d

Browse files
authored
Add a not-latest-version INCLUDE (#34108)
1 parent f5e471f commit 6e6fe9d

File tree

2 files changed

+43
-3
lines changed

2 files changed

+43
-3
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
:::moniker range="< aspnetcore-9.0"
2+
> [!NOTE]
3+
> This isn't the latest version of this article. For the current release, see the [.NET 9 version of this article](?view=aspnetcore-9.0&preserve-view=true).
4+
:::moniker-end
5+
6+
:::moniker range="> aspnetcore-9.0"
7+
> [!IMPORTANT]
8+
> This information relates to a pre-release product that may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
9+
>
10+
> For the current release, see the [.NET 9 version of this article](?view=aspnetcore-9.0&preserve-view=true).
11+
:::moniker-end
12+
13+
<!--
14+
Include either this file or 'not-latest-version.md' at the top of articles.
15+
16+
'not-latest-version.md': Includes not-supported content.
17+
'not-latest-version-without-not-supported-content.md' (this file): Doesn't include not-supported content.
18+
19+
Use this file in articles that target >=8.0 until 9.0 reaches EOL, and then update those
20+
articles to use 'not-latest-version.md'. For articles that target >=7.0, 'not-latest-version.md'
21+
can be used without creating a zone/file moniker range mismatch error.
22+
23+
When a new version is released, it might be necessary to temporarily comment out the current version
24+
moniker range section until the new moniker is created.
25+
26+
Markdown to include this file:
27+
28+
[!INCLUDE[](~/includes/not-latest-version-without-not-supported-content.md)]
29+
-->

aspnetcore/includes/not-latest-version.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,20 @@
1515
:::moniker-end
1616

1717
<!--
18-
Include this file at the top of articles. When a new version is released,
19-
it might be necessary to temporarily comment out the current version
20-
moniker range section until the new moniker is created.
18+
Include either this file or 'not-latest-version-without-not-supported-content.md' at the top
19+
of articles.
20+
21+
'not-latest-version.md' (this file): Includes not-supported content.
22+
'not-latest-version-without-not-supported-content.md': Doesn't include not-supported content.
23+
24+
Use this file in articles that target >=7.0. For articles that target >=8.0 prior to 9.0
25+
reaching EOL, 'not-latest-version-without-not-supported-content.md' must be used to avoid
26+
a zone/file moniker range mismatch error.
27+
28+
When a new version is released, it might be necessary to temporarily comment out the current
29+
version moniker range section until the new moniker is created.
30+
2131
Markdown to include this file:
32+
2233
[!INCLUDE[](~/includes/not-latest-version.md)]
2334
-->

0 commit comments

Comments
 (0)