Fix invalid moniker syntax in options.md#36893
Merged
wadepickett merged 3 commits intomainfrom Mar 18, 2026
Merged
Conversation
… in options.md Co-authored-by: wadepickett <10985336+wadepickett@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix invalid moniker syntax in ASP.NET Core documentation
Fix invalid moniker syntax in options.md
Mar 18, 2026
wadepickett
reviewed
Mar 18, 2026
tdykstra
approved these changes
Mar 18, 2026
Contributor
|
Thanks @FelixEckl for raising this issue and offering to fix it. Greatly appreciated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A hyphenated
:::moniker-rangedirective on line 1399 ofoptions.mdis not recognized by the Learn build system, causing raw moniker syntax to render on the published page.:::moniker-range=">= aspnetcore-8.0"→:::moniker range=">= aspnetcore-8.0"(hyphen → space), matching the syntax used by all other ~30 moniker directives in the file.Original prompt
This section details on the original issue you should resolve
<issue_title>Invalid moniker syntax in ASP.NET Core documentation</issue_title>
<issue_description>### Description
Page URL
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options?view=aspnetcore-8.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/configuration/options.md
Document ID
dc7e3449-650b-d117-5eac-69e5ccb250cb
Platform Id
c815d451-e2c8-0cf1-5862-03b12dd0392a
Article author
@tdykstra
Metadata
Comments on the Issue (you are @copilot in this section)
@wadepickett Thanks @FelixEckl for creating this issue and showing details. We will get this fixed! @wadepickett ## 🤖 AI Triage SummaryThis preliminary assessment report was run by: @wadepickett
Date: 2026-03-18
Issue: #36892
Model: GitHub Copilot
Issue Analysis: Invalid moniker syntax in ASP.NET Core Options Pattern documentation
✅ Issue Validation
Status: Valid and actionable
📋 Issue Summary
The ASP.NET Core Options Pattern documentation file (
options.md) contains an invalid moniker syntax on line 1399. The directive uses:::moniker-range=">= aspnetcore-8.0"(hyphenatedmoniker-range) instead of the correct syntax:::moniker range=">= aspnetcore-8.0"(space-separatedmoniker range). This causes the Microsoft Learn build system to fail to recognize the moniker directive, resulting in the raw moniker syntax being rendered on the published page rather than properly conditionally displaying content for ASP.NET Core 8.0+. All other moniker directives in the file (over 30 occurrences) correctly use the:::moniker rangesyntax with a space.📁 Potentially Affected Files
aspnetcore/fundamentals/configuration/options.mdIValidateOptions<TOptions>"📝 Preliminary Change Assessment
Potential documentation Updates
File:
aspnetcore/fundamentals/configuration/options.mdLocation: Line 1399 (within the "Validate options in a dedicated class with
IValidateOptions<TOptions>" section)Type: Replacement (typo fix)
Current content (line 1399):
Suggested direction:
🎯 Suggested Action Plan
Review existing PR: PR dotnet/AspNetCore.Docs#36891
:::moniker-rangeto:::moniker rangeon line 1399.Verify the fix on the published page:
OptionsValidation2.razorexample for the>= aspnetcore-8.0moniker on the published article.OptionsValidation2.razorBlazor example in the "V...💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.
Internal previews