Skip to content

Compilation of this example with VS in .net8 hanging #51937

@Kozinaka

Description

@Kozinaka

.NET 8.0
VisualStudio.17.Release/17.14.13+36414.22.-august.2025-
Microsoft .NET Framework
Version 4.8.09037
Installed Version: Professional
C# Tools 4.14.0-3.25412.6+c167adef821b9ba2f1c44c227a5e79ca11876461

My test project compiles successfully in net6, but in net8 it causes the Roslyn analyzer and compilation to hang.

To reproduce:

  1. Open solution from attached source-code: Net8CodeAnalysisHangingExample.zip
  2. Start solution building

Expected Behavior: Successful solution build.

Actual Behavior: Compilation hanging.

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions