Repository navigation
Use RazorLangVersion 12 in .NET 12 - #56320
Merged
Merged
Conversation
|
Azure Pipelines: Successfully started running 1 pipeline(s). 2 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The Roslyn dependency is not yet merged, and regression coverage for the new mapping is missing.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Updates Razor SDK defaults so .NET 12 projects use Razor language version 12.
Changes:
- Adds .NET 12 TFM detection.
- Defaults
RazorLangVersionto12.0. - Enables existing Razor tooling defaults.
File summaries
| File | Summary |
|---|---|
src/RazorSdk/Targets/Sdk.Razor.CurrentVersion.targets |
Adds .NET 12 Razor configuration defaults. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 2
- Review effort level: Lite
jjonescz
approved these changes
Sep 21, 2026
davidwengier
added a commit
to dotnet/roslyn
that referenced
this pull request
Sep 28, 2026
Adds `12.0` and `Version_12_0`, moves `Preview` to 12, and sets `Latest` to 11 so `latest` doesn't select the new version implicitly. Includes the version parsing test and the eight render-mode semantic-token baselines affected by the version change. This is the first layer of the Razor documentation stack. It replaces #85671 and enables the separate dotnet/sdk#56320 change. It doesn't add `@documentation` support. Validation on this commit: formatting and analyser-enabled builds passed. `RazorLanguageVersionTest`: 17 passed on `net10.0`. `CohostSemanticTokensRangeEndpointTest.RenderMode` and `RenderMode_Razor9`: eight passed in VS Code (`net10.0`) and eight in VS (`net472`), with baseline generation disabled. ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/dotnet/roslyn/pull/85720)
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.
Goes with dotnet/roslyn#85720, and probably shouldn't merge til that goes in.