diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 3b14f5904ed5..96e8a597bc26 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 a8a9584f5863..280d719c3c60 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 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); } }