Skip to content

Razor tools are crashing in VS 2026 #12681

@MarvinKlein1508

Description

@MarvinKlein1508

I’m opening this issue after a brief conversation with @danroth27.

I’m consistently running into problems with the Razor tools in Visual Studio, and I can reproduce them every single time.

Whenever I switch branches in a fairly large project, I receive the following error message:

Image

When I click Reload, all syntax highlighting for Razor components disappears:

Image

After a few minutes, the tooling may start working again, work only partially, or not recover at all—forcing me to restart Visual Studio. When the green squiggly lines begin to appear, it’s usually a sign that I’ll need to restart Visual Studio to continue working.

Image

I can reproduce it constantly by following this steps:

  1. Clone https://github.com/microsoft/fluentui-blazor
  2. Switch to the dev-v5 branch in VS
  3. Select the solution file
  4. Wait a few seconds

I believe this has something todo with the internal git tools as this is also happening sometimes when I revert a lot of changes in the active branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions