dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.74k stars 1.07k forks source link

Dotnet build hangs at CoreCompile when specific NuGet package referenced #45036

Open fabianoliver opened 13 hours ago

fabianoliver commented 13 hours ago

Describe the bug

When using SDK 9.0.100, building any project that references "ReactiveUI.SourceGenerations" version 1.1.31 hangs forever at the "CoreCompile" stage. Building the same project using SDK 8.0.100 works well.

Please feel free to close this issue if you reckon the package itself is at fault of course. I'm raising this here though as I would think that building this with a different SDK version "should" not be able to break the referenced package / source generator in any way?

To Reproduce

Build an empty project with the following csproj

Exe net8.0 enable enable