Skip to content

Release v7.152.1

Choose a tag to compare

@github-actions github-actions released this 10 Nov 20:32
3582153

Changed

  • The C# rules now cover C# 15 and .NET 11: keep LangVersion at latest, put new .NET 11 runtime APIs in multi-targeted libraries behind #if NET11_0_OR_GREATER with a .NET 10 fallback, use collection expression arguments ([with(capacity: n), .. items]) and labeled break/continue, and keep IDE style rules at suggestion severity.
  • The C# rules now say not to adopt union types, runtime-async or the memory-safety preview, and not to add closed to existing public types.
  • The C# code-quality rules now prefer a sealed record hierarchy with an exhaustive switch for a closed set of outcomes, with closed allowed only on new types in .NET 11 code.