Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/sdkPublic

Add RazorLangVersion 11#52226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
davidwengier wants to merge2 commits intomain
base:main
Choose a base branch
Loading
fromRazorv11
Open

Add RazorLangVersion 11#52226

davidwengier wants to merge2 commits intomainfromRazorv11

Conversation

@davidwengier
Copy link
Member

No description provided.

@davidwengierdavidwengier requested review froma team andCopilotDecember 16, 2025 23:12
@davidwengierdavidwengier requested a review froma team as acode ownerDecember 16, 2025 23:12
@github-actionsgithub-actionsbot added the Area-AspNetCoreRazorSDK, BlazorWebAssemblySDK, dotnet-watch labelDec 16, 2025
@dotnet-policy-service
Copy link
Contributor

Thanks for your PR, @@davidwengier.
To learn about the PR process and branching schedule of this repo, please take a look at theSDK PR Guide.

Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull request overview

This PR adds support for RazorLangVersion 11.0 for .NET 11.0 by introducing a new version-specific configuration block in the Razor SDK targets file.

Key Changes:

  • Adds a new<When> condition block for .NETCoreApp 11.0+ that sets RazorLangVersion to 11.0
  • Sets all necessary version flags (_TargetingNET110OrLater and earlier version flags)
  • Enables UseRazorSourceGenerator and _RazorUseRoslynTokenizer features for the new version

@davidwengier
Copy link
MemberAuthor

Are these sorts of PRs better done in the VMR these days, so we can be sure things are inserted in the right places/order first?

<_TargetingNET100OrLater>true</_TargetingNET100OrLater>
<UseRazorSourceGeneratorCondition="'$(Language)' == 'C#' AND '$(UseRazorSourceGenerator)' == ''">true</UseRazorSourceGenerator>
<RazorLangVersionCondition="'$(RazorLangVersion)' == ''">9.0</RazorLangVersion>
<RazorLangVersionCondition="'$(RazorLangVersion)' == ''">10.0</RazorLangVersion>
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Discussed with the team and we're going to backport this to 10.0.2xx too

@davidwengier
Copy link
MemberAuthor

That answers my question: Need to wait for Razor to flow in here, via VMR, before this can be merged. Hopefully that is all in place to succeed in time...

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

@chsienkichsienkichsienki approved these changes

Assignees

No one assigned

Labels

Area-AspNetCoreRazorSDK, BlazorWebAssemblySDK, dotnet-watch

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@davidwengier@chsienki

[8]ページ先頭

©2009-2025 Movatter.jp