Skip to content

Commit

Permalink
[release/9.0.3xx] Update dependencies from dotnet/razor (#46189)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-wuzhai authored Jan 23, 2025
2 parents 528b448 + 134c24b commit 2cc09d8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -321,22 +321,22 @@
<Sha>af22effae4069a5dfb9b0735859de48820104f5b</Sha>
<SourceBuild RepoName="aspnetcore" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.CodeAnalysis.Razor.Tooling.Internal" Version="9.0.0-preview.25070.1">
<Dependency Name="Microsoft.CodeAnalysis.Razor.Tooling.Internal" Version="9.0.0-preview.25071.2">
<Uri>https://github.com/dotnet/razor</Uri>
<Sha>66fdab134fb3e72d0fc265fd4456fefd405cf07f</Sha>
<Sha>0e13d494d0fbe858112bee131e40004480b95d39</Sha>
</Dependency>
<Dependency Name="Microsoft.AspNetCore.Mvc.Razor.Extensions.Tooling.Internal" Version="9.0.0-preview.25070.1">
<Dependency Name="Microsoft.AspNetCore.Mvc.Razor.Extensions.Tooling.Internal" Version="9.0.0-preview.25071.2">
<Uri>https://github.com/dotnet/razor</Uri>
<Sha>66fdab134fb3e72d0fc265fd4456fefd405cf07f</Sha>
<Sha>0e13d494d0fbe858112bee131e40004480b95d39</Sha>
</Dependency>
<Dependency Name="Microsoft.NET.Sdk.Razor.SourceGenerators.Transport" Version="9.0.0-preview.25070.1">
<Dependency Name="Microsoft.NET.Sdk.Razor.SourceGenerators.Transport" Version="9.0.0-preview.25071.2">
<Uri>https://github.com/dotnet/razor</Uri>
<Sha>66fdab134fb3e72d0fc265fd4456fefd405cf07f</Sha>
<Sha>0e13d494d0fbe858112bee131e40004480b95d39</Sha>
</Dependency>
<!-- Intermediate is necessary for source build. -->
<Dependency Name="Microsoft.SourceBuild.Intermediate.razor" Version="9.0.0-preview.25070.1">
<Dependency Name="Microsoft.SourceBuild.Intermediate.razor" Version="9.0.0-preview.25071.2">
<Uri>https://github.com/dotnet/razor</Uri>
<Sha>66fdab134fb3e72d0fc265fd4456fefd405cf07f</Sha>
<Sha>0e13d494d0fbe858112bee131e40004480b95d39</Sha>
<SourceBuild RepoName="razor" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.Extensions.FileProviders.Embedded" Version="9.0.0">
Expand Down
6 changes: 3 additions & 3 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@
</PropertyGroup>
<PropertyGroup>
<!-- Dependencies from https://github.com/dotnet/razor -->
<MicrosoftAspNetCoreMvcRazorExtensionsToolingInternalPackageVersion>9.0.0-preview.25070.1</MicrosoftAspNetCoreMvcRazorExtensionsToolingInternalPackageVersion>
<MicrosoftCodeAnalysisRazorToolingInternalVersion>9.0.0-preview.25070.1</MicrosoftCodeAnalysisRazorToolingInternalVersion>
<MicrosoftNETSdkRazorSourceGeneratorsTransportPackageVersion>9.0.0-preview.25070.1</MicrosoftNETSdkRazorSourceGeneratorsTransportPackageVersion>
<MicrosoftAspNetCoreMvcRazorExtensionsToolingInternalPackageVersion>9.0.0-preview.25071.2</MicrosoftAspNetCoreMvcRazorExtensionsToolingInternalPackageVersion>
<MicrosoftCodeAnalysisRazorToolingInternalVersion>9.0.0-preview.25071.2</MicrosoftCodeAnalysisRazorToolingInternalVersion>
<MicrosoftNETSdkRazorSourceGeneratorsTransportPackageVersion>9.0.0-preview.25071.2</MicrosoftNETSdkRazorSourceGeneratorsTransportPackageVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Dependencies from https://github.com/dotnet/wpf -->
Expand Down
4 changes: 2 additions & 2 deletions src/RazorSdk/Tool/GenerateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -267,7 +267,7 @@ private int ExecuteCore(
}
}

File.WriteAllText(outputFilePath, result.CSharpDocument.GeneratedCode);
File.WriteAllText(outputFilePath, generatedCode);
}
}

Expand Down

0 comments on commit 2cc09d8

Please sign in to comment.