.NET May 2025 Update - .NET 9.0.5 and .NET 8.0.16
.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:
- ASP.NET Core: dotnet/aspnetcore
- Entity Framework Core: dotnet/efcore
- .NET CLI/SDK dotnet/sdk
- .NET runtime dotnet/runtime
- Winforms: dotnet/winforms
- WPF: dotnet/wpf
- NuGet: nuget/home
- Containers: dotnet/dotnet-docker
- Winget: microsoft/winget-pkgs
Known Issues
That link to 9.0.5 release notes is broken.
That link to 9.0.5 release notes is broken.
The link is live now. Thank you for your patience!
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
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 https://github.com/dotnet/sdk/pull/45290
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)
In Azure Pipelines using
ubuntu-latestimage and9.0.300SDK all our builds failed due toCSC 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.204in Azure Pipeline fix issue with builds.I can provide
binlogon 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.
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
https://github.com/dotnet/runtime/issues/115565
@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.
After digging a bit and disabling
false in *.proj file, the issue appears to be related to StaticWebAssets. Still investigating further
@javiercn
In Azure Pipelines using
ubuntu-latestimage and9.0.300SDK all our builds failed due toCSC 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.
@jscarle did the <CompressionEnabled>false</CompressionEnabled> work around fix your builds too?
@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.
In Azure Pipelines using
ubuntu-latestimage and9.0.300SDK all our builds failed due toCSC 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.204in Azure Pipeline fix issue with builds. I can providebinlogon request (privately)After digging a bit and disabling
<CompressionEnabled>false</CompressionEnabled>in *.proj file, the issue appears to be related to StaticWebAssets. Still investigating furtherC:\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 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.
@jscarle if you're able to submit a compiler log it should allow us to root cause this very quickly.
@jaredpar https://developercommunity.visualstudio.com/t/NET-SDK-90300-builds-failing-on-Azure/10904169
@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
@alfeg, @srudenkoyb, @jscarle:
Thanks for the logs. We've traced it to a very precise loop error that will be fixed in https://github.com/dotnet/razor/pull/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!
Thanks @333fred, thanks @jaredpar
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!
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?