From f0591a23d26f59fa2d6a02e5b33a4995e15c0bd5 Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" Date: Wed, 22 Jan 2025 05:02:05 +0000 Subject: [PATCH 1/2] Update dependencies from https://github.com/dotnet/razor build 20250121.2 Microsoft.SourceBuild.Intermediate.razor , Microsoft.AspNetCore.Mvc.Razor.Extensions.Tooling.Internal , Microsoft.CodeAnalysis.Razor.Tooling.Internal , Microsoft.NET.Sdk.Razor.SourceGenerators.Transport From Version 9.0.0-preview.25070.1 -> To Version 9.0.0-preview.25071.2 --- eng/Version.Details.xml | 16 ++++++++-------- eng/Versions.props | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 8d3233159d8e..e9be90f0bc8b 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -321,22 +321,22 @@ af22effae4069a5dfb9b0735859de48820104f5b - + https://github.com/dotnet/razor - 66fdab134fb3e72d0fc265fd4456fefd405cf07f + 0e13d494d0fbe858112bee131e40004480b95d39 - + https://github.com/dotnet/razor - 66fdab134fb3e72d0fc265fd4456fefd405cf07f + 0e13d494d0fbe858112bee131e40004480b95d39 - + https://github.com/dotnet/razor - 66fdab134fb3e72d0fc265fd4456fefd405cf07f + 0e13d494d0fbe858112bee131e40004480b95d39 - + https://github.com/dotnet/razor - 66fdab134fb3e72d0fc265fd4456fefd405cf07f + 0e13d494d0fbe858112bee131e40004480b95d39 diff --git a/eng/Versions.props b/eng/Versions.props index 3e0af3e5bd3e..99498216826e 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -229,9 +229,9 @@ - 9.0.0-preview.25070.1 - 9.0.0-preview.25070.1 - 9.0.0-preview.25070.1 + 9.0.0-preview.25071.2 + 9.0.0-preview.25071.2 + 9.0.0-preview.25071.2 From 134c24b762c06b3c831c7c9f021602d00aef2c12 Mon Sep 17 00:00:00 2001 From: Dustin Campbell Date: Tue, 21 Jan 2025 14:01:43 -0800 Subject: [PATCH 2/2] Update to account for RazorCSharpDocument API change --- src/RazorSdk/Tool/GenerateCommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RazorSdk/Tool/GenerateCommand.cs b/src/RazorSdk/Tool/GenerateCommand.cs index 11cf4a8c3981..68dc861bcc39 100644 --- a/src/RazorSdk/Tool/GenerateCommand.cs +++ b/src/RazorSdk/Tool/GenerateCommand.cs @@ -255,7 +255,7 @@ private int ExecuteCore( { // Only output the file if we generated it without errors. var outputFilePath = result.InputItem.OutputPath; - var generatedCode = result.CSharpDocument.GeneratedCode; + var generatedCode = result.CSharpDocument.Text.ToString(); if (isGeneratingDeclaration) { // When emiting declarations, only write if it the contents are different. @@ -267,7 +267,7 @@ private int ExecuteCore( } } - File.WriteAllText(outputFilePath, result.CSharpDocument.GeneratedCode); + File.WriteAllText(outputFilePath, generatedCode); } }