Skip to content

.NET May 2025 Update - .NET 9.0.5 and .NET 8.0.16 #9885

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
victorisr opened this issue May 13, 2025 · 24 comments
Open

.NET May 2025 Update - .NET 9.0.5 and .NET 8.0.16 #9885

victorisr opened this issue May 13, 2025 · 24 comments

Comments

@victorisr
Copy link
Contributor

victorisr commented May 13, 2025

.NET May 2025 Update

Release Notes

Status

Asset Type 9.0.5 8.0.16 Notes
Installers/Binaries
Container Images
(Linux)
Container Images
(Windows)
Winget Packages
Linux Installers (Microsoft distribution) The list below refers to the Microsoft-provisioned feeds (packages.microsoft.com) and does not in any way represent direct availability in distros (eg RHEL, Fedora).
     Debian 12
     Fedora 40
     Fedora 41
     OpenSUSE 15
     Oracle 8
     Oracle 9
     Ubuntu 20.04
     Ubuntu 22.04
     Ubuntu 24.04
     Ubuntu 24.10

Issues

Please report any issues you find either by responding to this issue, creating a new issue or creating a new issue in one of the following repos:

Known Issues

@julealgon
Copy link

That link to 9.0.5 release notes is broken.

@victorisr
Copy link
Contributor Author

That link to 9.0.5 release notes is broken.

The link is live now. Thank you for your patience!

@hoerup
Copy link

hoerup commented May 14, 2025

The 9.0.5.md notable change section has the phrase ".NET 9.0.4 release carries security fixes and non-security fixes." - and is mentioning CVE-2025-26682 which is from the 9.0.4 release

@epenet
Copy link

epenet commented May 14, 2025

Hi
I am targetting 8.0.x, and it looks like the release of 8.0.16/8.0.409 today has broken dotnet format (targetting a .NET framework 4.7.2 solution). It was working fine yesterday in 8.0.15/8.0.408

dotnet format whitespace  --verify-no-changes --verbosity diagnostic
========================== Starting Command Output ===========================
"C:\Windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\0a0b64ad-06be-4bf5-a936-16ee200968a8.cmd""
  The dotnet runtime version is '8.0.16'.
  The dotnet CLI version is '8.0.409'.
  Using MSBuild.exe located in 'C:\hostedtoolcache\windows/dotnet\sdk\8.0.409\'.
  Formatting code files in workspace 'D:\a\1\s\xxx.sln'.
  Loading workspace.
Unhandled exception: System.Exception: The build host could not be found at 'C:\hostedtoolcache\windows\dotnet\sdk\8.0.409\DotnetTools\dotnet-format\BuildHost-net472\Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.exe'
   at Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager.AssertBuildHostExists(String buildHostPath)
   at Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager.GetDotNetFrameworkBuildHostPath()
   at Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager.CreateDotNetFrameworkBuildHostStartInfo()
   at Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager.GetBuildHostAsync(BuildHostProcessKind buildHostKind, CancellationToken cancellationToken)
   at Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager.GetBuildHostWithFallbackAsync(BuildHostProcessKind buildHostKind, String projectOrSolutionFilePath, CancellationToken cancellationToken)
   at Microsoft.CodeAnalysis.MSBuild.MSBuildProjectLoader.Worker.LoadProjectFileInfosAsync(String projectPath, DiagnosticReportingOptions reportingOptions, CancellationToken cancellationToken)
   at Microsoft.CodeAnalysis.MSBuild.MSBuildProjectLoader.Worker.LoadProjectInfosFromPathAsync(String projectPath, DiagnosticReportingOptions reportingOptions, CancellationToken cancellationToken)
   at Microsoft.CodeAnalysis.MSBuild.MSBuildProjectLoader.Worker.LoadAsync(CancellationToken cancellationToken)
   at Microsoft.CodeAnalysis.MSBuild.MSBuildProjectLoader.LoadSolutionInfoAsync(String solutionFilePath, IProgress`1 progress, ILogger msbuildLogger, CancellationToken cancellationToken)
   at Microsoft.CodeAnalysis.MSBuild.MSBuildProjectLoader.LoadSolutionInfoAsync(String solutionFilePath, IProgress`1 progress, ILogger msbuildLogger, CancellationToken cancellationToken)
   at Microsoft.CodeAnalysis.MSBuild.MSBuildWorkspace.OpenSolutionAsync(String solutionFilePath, ILogger msbuildLogger, IProgress`1 progress, CancellationToken cancellationToken)
   at Microsoft.CodeAnalysis.Tools.Workspaces.MSBuildWorkspaceLoader.LoadAsync(String solutionOrProjectPath, WorkspaceType workspaceType, String binaryLogPath, Boolean logWorkspaceWarnings, ILogger logger, CancellationToken cancellationToken)
   at Microsoft.CodeAnalysis.Tools.CodeFormatter.OpenMSBuildWorkspaceAsync(String solutionOrProjectPath, WorkspaceType workspaceType, Boolean noRestore, Boolean requiresSemantics, String binaryLogPath, Boolean logWorkspaceWarnings, ILogger logger, CancellationToken cancellationToken)
   at Microsoft.CodeAnalysis.Tools.CodeFormatter.FormatWorkspaceAsync(FormatOptions formatOptions, ILogger logger, CancellationToken cancellationToken, String binaryLogPath)
   at Microsoft.CodeAnalysis.Tools.FormatCommandCommon.FormatAsync(FormatOptions formatOptions, ILogger`1 logger, CancellationToken cancellationToken)
   at Microsoft.CodeAnalysis.Tools.Commands.FormatWhitespaceCommand.FormatWhitespaceHandler.InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken)
   at System.CommandLine.Invocation.InvocationPipeline.InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken)

Similar to dotnet/sdk#45290

@alfeg
Copy link

alfeg commented May 14, 2025

In Azure Pipelines using ubuntu-latest image and 9.0.300 SDK all our builds failed due to

CSC error CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentOutOfRangeException' with message 'Specified argument was out of the range of valid values.'. [/home/vsts/work/1/s/src/***.Web/***.Web.csproj]

Messages
    Microsoft (R) Visual C# Compiler version 4.14.0-3.25218.8 (d7bde97e)
    Copyright (C) Microsoft Corporation. All rights reserved.
    System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
    at Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeWriter.Reader.Read(Char[] buffer, Int32 index, Int32 count)
    at System.IO.TextReader.ReadBlock(Char[] buffer, Int32 index, Int32 count)
    at Microsoft.CodeAnalysis.Text.LargeText.ReadChunksFromTextReader(TextReader reader, Int32 maxCharRemainingGuess, Boolean throwIfBinaryDetected)
    at Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeWriter.GetText()
    at Microsoft.AspNetCore.Razor.Language.CodeGeneration.DefaultDocumentWriter.WriteDocument(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode)
    at Microsoft.AspNetCore.Razor.Language.DefaultRazorCSharpLoweringPhase.ExecuteCore(RazorCodeDocument codeDocument, CancellationToken cancellationToken)
    at Microsoft.AspNetCore.Razor.Language.RazorEnginePhaseBase.Execute(RazorCodeDocument codeDocument, CancellationToken cancellationToken)
    at Microsoft.NET.Sdk.Razor.SourceGenerators.SourceGeneratorProjectEngine.ExecutePhases(ReadOnlySpan`1 phases, RazorCodeDocument codeDocument)
    at Microsoft.NET.Sdk.Razor.SourceGenerators.SourceGeneratorProjectEngine.ProcessRemaining(SourceGeneratorRazorCodeDocument sgDocument)
    at Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator.<>c__DisplayClass6_2.<Initialize>b__26(ValueTuple`3 pair, CancellationToken _)
    at Microsoft.CodeAnalysis.TransformNode`2.<>c__DisplayClass6_0.<.ctor>b__0(TInput i, CancellationToken token)
    at Microsoft.CodeAnalysis.TransformNode`2.UpdateStateTable(Builder builder, NodeStateTable`1 previousTable, CancellationToken cancellationToken)
    -----

Setting fixed SDK version to 9.0.204 in Azure Pipeline fix issue with builds.

I can provide binlog on request (privately)

@srudenkoyb
Copy link

srudenkoyb commented May 14, 2025

In Azure Pipelines using ubuntu-latest image and 9.0.300 SDK all our builds failed due to

CSC error CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentOutOfRangeException' with message 'Specified argument was out of the range of valid values.'. [/home/vsts/work/1/s/src/***.Web/***.Web.csproj]

Messages
    Microsoft (R) Visual C# Compiler version 4.14.0-3.25218.8 (d7bde97e)
    Copyright (C) Microsoft Corporation. All rights reserved.
    System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
    at Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeWriter.Reader.Read(Char[] buffer, Int32 index, Int32 count)
    at System.IO.TextReader.ReadBlock(Char[] buffer, Int32 index, Int32 count)
    at Microsoft.CodeAnalysis.Text.LargeText.ReadChunksFromTextReader(TextReader reader, Int32 maxCharRemainingGuess, Boolean throwIfBinaryDetected)
    at Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeWriter.GetText()
    at Microsoft.AspNetCore.Razor.Language.CodeGeneration.DefaultDocumentWriter.WriteDocument(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode)
    at Microsoft.AspNetCore.Razor.Language.DefaultRazorCSharpLoweringPhase.ExecuteCore(RazorCodeDocument codeDocument, CancellationToken cancellationToken)
    at Microsoft.AspNetCore.Razor.Language.RazorEnginePhaseBase.Execute(RazorCodeDocument codeDocument, CancellationToken cancellationToken)
    at Microsoft.NET.Sdk.Razor.SourceGenerators.SourceGeneratorProjectEngine.ExecutePhases(ReadOnlySpan`1 phases, RazorCodeDocument codeDocument)
    at Microsoft.NET.Sdk.Razor.SourceGenerators.SourceGeneratorProjectEngine.ProcessRemaining(SourceGeneratorRazorCodeDocument sgDocument)
    at Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator.<>c__DisplayClass6_2.<Initialize>b__26(ValueTuple`3 pair, CancellationToken _)
    at Microsoft.CodeAnalysis.TransformNode`2.<>c__DisplayClass6_0.<.ctor>b__0(TInput i, CancellationToken token)
    at Microsoft.CodeAnalysis.TransformNode`2.UpdateStateTable(Builder builder, NodeStateTable`1 previousTable, CancellationToken cancellationToken)
    -----

Setting fixed SDK version to 9.0.204 in Azure Pipeline fix issue with builds.

I can provide binlog on request (privately)

After digging a bit and disabling <CompressionEnabled>false</CompressionEnabled> in *.proj file, the issue appears to be related to StaticWebAssets. Still investigating further

C:\Program Files\dotnet\sdk\9.0.300\Sdks\Microsoft.NET.Sdk.StaticWebAssets\targets\Microsoft.NET.Sdk.StaticWebAssets.targets(615,5): error : Conflicting assets with the same target path 'css/ag-grid.min#[.{fingerprint}]?.css'. For 'All' assets 'Identity: 
E:\app\src\YB.Web.Admin\wwwroot\css\ag-grid.min.css, SourceType: Discovered, SourceId: YB.Web.Admin, ContentRoot: 
E:\app\src\YB.Web.Admin\wwwroot\, BasePath: _content/YB.Web.Admin, RelativePath: css/ag-grid.min#[.{fingerprint}]?.css, 
AssetKind: All, AssetMode: All, AssetRole: Primary, AssetRole: , AssetRole: , RelatedAsset: , AssetTraitName: , AssetTraitValue: , 
Fingerprint: t9yig8we96, Integrity: AS7no5uSZT5yz4hhyzlWMPdeIyORslFEBmftdaIqc4M=, FileLength: 152124, LastWriteTime: 
09/05/2025 07:25:55 +00:00, CopyToOutputDirectory: Never, CopyToPublishDirectory: PreserveNewest, OriginalItemSpec: 
wwwroot/css/ag-grid.min.css' and 'Identity: E:\cloud.2\src\YB.Web.Admin\wwwroot\css\ag-grid.min.css, SourceType: Discovered, 
SourceId: YB.Web.Admin, ContentRoot: E:\cloud.2\src\YB.Web.Admin\wwwroot\, BasePath: _content/YB.Web.Admin, 
RelativePath: css/ag-grid.min#[.{fingerprint}]?.css, AssetKind: All, AssetMode: All, AssetRole: Primary, AssetRole: , AssetRole: , 
RelatedAsset: , AssetTraitName: , AssetTraitValue: , Fingerprint: t9yig8we96, Integrity: 
AS7no5uSZT5yz4hhyzlWMPdeIyORslFEBmftdaIqc4M=, FileLength: 152124, LastWriteTime: 09/05/2025 07:25:55 +00:00, 
CopyToOutputDirectory: Never, CopyToPublishDirectory: PreserveNewest, OriginalItemSpec: wwwroot\css\ag-grid.min.css'.

Temporarily reverted to 9.0.203 in all builds.

@r-cass
Copy link

r-cass commented May 14, 2025

KO for now for Rocky Linux 9, cannot resolve dotnet-runtime-deps for 8.0.16 (max available 8.0.15) but dotnet-runtime-8.0 is already to 8.0.16. The workaround is to use the dotnet-sdk to be able to install 8.0.15

dotnet/runtime#115565

@jaredpar
Copy link
Member

@alfeg, @srudenkoyb

I can provide binlog on request (privately)

In addition to a binlog could you upload a compiler log. That will let us reproduce the problem very quickly.

If you use Report a Problem in Visual Studio that will give you a place where you can share these files confidentially.

Image

After digging a bit and disabling false in *.proj file, the issue appears to be related to StaticWebAssets. Still investigating further

@javiercn

@jscarle
Copy link

jscarle commented May 14, 2025

In Azure Pipelines using ubuntu-latest image and 9.0.300 SDK all our builds failed due to

CSC error CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentOutOfRangeException' with message 'Specified argument was out of the range of valid values.'. [/home/vsts/work/1/s/src/***.Web/***.Web.csproj]

Confirmed. We are also facing this issue. Our builds have been broken since 2025-05-13 17:11:59 GMT-04:00.

@jaredpar
Copy link
Member

@jscarle did the <CompressionEnabled>false</CompressionEnabled> work around fix your builds too?

@jaredpar
Copy link
Member

@alfeg if you create a VS feedback issue can you post the link here? That way I don't have to wait for it to be routed, I can just grab it immediately.

@rbhanda
Copy link
Contributor

rbhanda commented May 14, 2025

In Azure Pipelines using ubuntu-latest image and 9.0.300 SDK all our builds failed due to

CSC error CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentOutOfRangeException' with message 'Specified argument was out of the range of valid values.'. [/home/vsts/work/1/s/src/***.Web/***.Web.csproj]

Messages
    Microsoft (R) Visual C# Compiler version 4.14.0-3.25218.8 (d7bde97e)
    Copyright (C) Microsoft Corporation. All rights reserved.
    System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
    at Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeWriter.Reader.Read(Char[] buffer, Int32 index, Int32 count)
    at System.IO.TextReader.ReadBlock(Char[] buffer, Int32 index, Int32 count)
    at Microsoft.CodeAnalysis.Text.LargeText.ReadChunksFromTextReader(TextReader reader, Int32 maxCharRemainingGuess, Boolean throwIfBinaryDetected)
    at Microsoft.AspNetCore.Razor.Language.CodeGeneration.CodeWriter.GetText()
    at Microsoft.AspNetCore.Razor.Language.CodeGeneration.DefaultDocumentWriter.WriteDocument(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode)
    at Microsoft.AspNetCore.Razor.Language.DefaultRazorCSharpLoweringPhase.ExecuteCore(RazorCodeDocument codeDocument, CancellationToken cancellationToken)
    at Microsoft.AspNetCore.Razor.Language.RazorEnginePhaseBase.Execute(RazorCodeDocument codeDocument, CancellationToken cancellationToken)
    at Microsoft.NET.Sdk.Razor.SourceGenerators.SourceGeneratorProjectEngine.ExecutePhases(ReadOnlySpan`1 phases, RazorCodeDocument codeDocument)
    at Microsoft.NET.Sdk.Razor.SourceGenerators.SourceGeneratorProjectEngine.ProcessRemaining(SourceGeneratorRazorCodeDocument sgDocument)
    at Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator.<>c__DisplayClass6_2.<Initialize>b__26(ValueTuple`3 pair, CancellationToken _)
    at Microsoft.CodeAnalysis.TransformNode`2.<>c__DisplayClass6_0.<.ctor>b__0(TInput i, CancellationToken token)
    at Microsoft.CodeAnalysis.TransformNode`2.UpdateStateTable(Builder builder, NodeStateTable`1 previousTable, CancellationToken cancellationToken)
    -----

Setting fixed SDK version to 9.0.204 in Azure Pipeline fix issue with builds.
I can provide binlog on request (privately)

After digging a bit and disabling <CompressionEnabled>false</CompressionEnabled> in *.proj file, the issue appears to be related to StaticWebAssets. Still investigating further

C:\Program Files\dotnet\sdk\9.0.300\Sdks\Microsoft.NET.Sdk.StaticWebAssets\targets\Microsoft.NET.Sdk.StaticWebAssets.targets(615,5): error : Conflicting assets with the same target path 'css/ag-grid.min#[.{fingerprint}]?.css'. For 'All' assets 'Identity: 
E:\app\src\YB.Web.Admin\wwwroot\css\ag-grid.min.css, SourceType: Discovered, SourceId: YB.Web.Admin, ContentRoot: 
E:\app\src\YB.Web.Admin\wwwroot\, BasePath: _content/YB.Web.Admin, RelativePath: css/ag-grid.min#[.{fingerprint}]?.css, 
AssetKind: All, AssetMode: All, AssetRole: Primary, AssetRole: , AssetRole: , RelatedAsset: , AssetTraitName: , AssetTraitValue: , 
Fingerprint: t9yig8we96, Integrity: AS7no5uSZT5yz4hhyzlWMPdeIyORslFEBmftdaIqc4M=, FileLength: 152124, LastWriteTime: 
09/05/2025 07:25:55 +00:00, CopyToOutputDirectory: Never, CopyToPublishDirectory: PreserveNewest, OriginalItemSpec: 
wwwroot/css/ag-grid.min.css' and 'Identity: E:\cloud.2\src\YB.Web.Admin\wwwroot\css\ag-grid.min.css, SourceType: Discovered, 
SourceId: YB.Web.Admin, ContentRoot: E:\cloud.2\src\YB.Web.Admin\wwwroot\, BasePath: _content/YB.Web.Admin, 
RelativePath: css/ag-grid.min#[.{fingerprint}]?.css, AssetKind: All, AssetMode: All, AssetRole: Primary, AssetRole: , AssetRole: , 
RelatedAsset: , AssetTraitName: , AssetTraitValue: , Fingerprint: t9yig8we96, Integrity: 
AS7no5uSZT5yz4hhyzlWMPdeIyORslFEBmftdaIqc4M=, FileLength: 152124, LastWriteTime: 09/05/2025 07:25:55 +00:00, 
CopyToOutputDirectory: Never, CopyToPublishDirectory: PreserveNewest, OriginalItemSpec: wwwroot\css\ag-grid.min.css'.

Temporarily reverted to 9.0.203 in all builds.

Hello @srudenkoyb will you be able to send the logs to me at [email protected]

@jscarle
Copy link

jscarle commented May 14, 2025

@jscarle did the <CompressionEnabled>false</CompressionEnabled> work around fix your builds too?

@jaredpar It did not resolve our issue. We're still trying to hunt down the cause.

@jaredpar
Copy link
Member

@jscarle if you're able to submit a compiler log it should allow us to root cause this very quickly.

@alfeg
Copy link

alfeg commented May 14, 2025

@jscarle
Copy link

jscarle commented May 14, 2025

@jaredpar https://developercommunity.visualstudio.com/t/CS8785:-Generator-RazorSourceGenerator/10904192

Attaching here for reference. Issue includes msbuild.binlog and msbuild.complog.

If anyone needs to do this in GitHub Actions:

      - name: Build app
        env:
          _RazorSourceGeneratorDebug: true
          DOTNET_GENERATOR_DIAGNOSTICS: 1
        run: dotnet build YourProject.csproj --binaryLogger

      - name: Upload build log
        uses: actions/upload-artifact@v4
        with:
          name: msbuild.binlog
          path: ${{ github.workspace }}/msbuild.binlog

      - name: Generate compiler log
        run: |
          dotnet tool install -g complog
          complog create ${{ github.workspace }}/msbuild.binlog

      - name: Upload compiler log
        uses: actions/upload-artifact@v4
        with:
          name: msbuild.complog
          path: ${{ github.workspace }}/msbuild.complog

@333fred
Copy link
Member

333fred commented May 14, 2025

@alfeg, @srudenkoyb, @jscarle:

Thanks for the logs. We've traced it to a very precise loop error that will be fixed in dotnet/razor#11861. We expect to publish a toolset package you can use to work around the error in the next couple of days, with permanent fix in the next version. Thanks for the prompt reporting!

@jscarle
Copy link

jscarle commented May 14, 2025

Thanks @333fred, thanks @jaredpar

@Thefrank
Copy link

Thefrank commented May 15, 2025

Typo?
https://github.com/dotnet/core/releases/tag/v9.0.5 lists and links to 9.0.105 as the 9.0.1xx SDK for v9.0.5 everywhere else lists and links to 9.0.106 as the SDK (e.g., https://dotnet.microsoft.com/en-us/download/dotnet/9.0)

edit: looks fixed now!

@mairaw
Copy link
Contributor

mairaw commented May 15, 2025

I think it's a typo on https://github.com/dotnet/core/releases/tag/v9.0.5 because 9.0.4 already links to 9.0.105. @rbhanda @victorisr?

@jjonescz
Copy link
Member

jjonescz commented May 15, 2025

To work around the razor issue before new SDK version is released, you can temporarily reference razor toolset package:

https://dev.azure.com/dnceng/public/_artifacts/feed/dotnet-tools/NuGet/Microsoft.Net.Compilers.Razor.Toolset/overview/9.0.0-preview.25264.2

You need to add the nuget feed, e.g., like this to a nuget.config file:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="nuget" value="https://api.nuget.org/v3/index.json" />
    <add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
  </packageSources>
</configuration>

And then you can install the toolset package with the fix in your project file or Directory.Build.props:

  <ItemGroup>
    <PackageReference Include="Microsoft.Net.Compilers.Razor.Toolset" Version="9.0.0-preview.25264.2">
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
      <PrivateAssets>all</PrivateAssets>
    </PackageReference>
  </ItemGroup>

@michal2612
Copy link

I have same issue with 8.0.x Explicitly using last version before march as a temporary work-around solves the problem:

    - name: Setup .NET
      uses: actions/setup-dotnet@v4
      with:
        dotnet-version: 8.0.408

@333fred
Copy link
Member

333fred commented May 15, 2025

@michal2612 which issue are you referring to? The one I fixed yesterday would not be affecting 8.0.xxx, as the code is only in 9.0.3xx; could you open a separate issue for your specific problem so we don't all get confused on what is broken and what is not?

@jscarle @alfeg @srudenkoyb, I've broken the razor issue out into dotnet/razor#11863 for specific tracking.

@corngood
Copy link

The 9.0.5 release seems to have invalid hashes in the releases.json, as described here:

#9872 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests