From 97b8f91c03fb1972983e3007b5e9180a68ba90f4 Mon Sep 17 00:00:00 2001 From: Fredric Silberberg Date: Wed, 8 Jan 2025 16:30:13 -0800 Subject: [PATCH] Set `use-roslyn-tokenizer` for .NET 10 razor projects --- src/RazorSdk/Targets/Sdk.Razor.CurrentVersion.targets | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/RazorSdk/Targets/Sdk.Razor.CurrentVersion.targets b/src/RazorSdk/Targets/Sdk.Razor.CurrentVersion.targets index 561902a19ed9..59dc3460e637 100644 --- a/src/RazorSdk/Targets/Sdk.Razor.CurrentVersion.targets +++ b/src/RazorSdk/Targets/Sdk.Razor.CurrentVersion.targets @@ -55,6 +55,8 @@ Copyright (c) .NET Foundation. All rights reserved. <_TargetingNET100OrLater>true true 9.0 + <_RazorUseRoslynTokenizer Condition="'$(_RazorUseRoslynTokenizer)'==''">true + use-roslyn-tokenizer=true;$(FEATURES)