Skip to content

1.4.26-beta

Pre-release
Pre-release

Choose a tag to compare

@AArnott AArnott released this 19 Nov 15:31
00e5715

This is the first 1.4-beta after 1.3.180. master is now the 1.4 line, with v1.3 as a servicing branch. This build adds an opt-in rule for misleading public members on internal types, eases a few naming false positives, and runs the C# 15 tests on the official .NET 11 and Roslyn 5.12 packages.

Highlights

  • SA1415 (DoNotUsePublicOnMembersOfInternalTypes) reports an explicit public modifier on a member of a type whose effective accessibility is internal, private, or private protected. The rule is disabled by default. Enable it with dotnet_diagnostic.SA1415.severity = warning. A code fix changes public to internal. (#4409, fixes #2981)
  • SA1315 no longer requires inherited parameter names when the original name is obj, or when the parameter's declared type is a generic type parameter (for example T other on IFoo<T>). Ordinary inherited names are still reported. (#4427)
  • SA1316 no longer treats deconstruction targets such as (name, Value) = t as tuple element names when includeInferredTupleElementNames is enabled. Those variables do not create tuple element names. (#4419, fixes #4418)
  • Official C# 15 compiler packages. C# 15 tests now use Roslyn 5.12.0 from nuget.org and the stable .NET 11 reference assemblies and SDK, instead of 5.11 preview builds and .NET 11 RC packs. The memory-model safe modifier is still a preview feature, so only those tests request LanguageVersion.Preview. (#4422, #4414, #4413, #4412, part of #4411)

Behavior changes worth knowing about

  • SA1415 is off by default. Users who want the rule must set dotnet_diagnostic.SA1415.severity = warning.
  • SA1315 no longer reports renamed obj parameters or parameters whose declared type is a generic type parameter. When a method implements several interface members, an exempt member is skipped but a non-exempt one can still trigger the diagnostic.
  • SA1316 no longer reports inferred names on the left-hand side of a deconstruction when includeInferredTupleElementNames is on.

All changes

New rules

  • Add SA1415: do not use public on members of internal types by @AArnott in #4409

Fixes

Infrastructure and build

  • Merge v1.3 into master by @AArnott in #4428
  • Use the stable Roslyn 5.12.0 compiler in C# 15 tests by @AArnott in #4422
  • Update dotnet monorepo to 5.12.0 by @app/renovate in #4414
  • Use the stable .NET 11 reference assemblies in C# 15 tests by @AArnott in #4413
  • Update dependency dotnet-sdk to v11 by @app/renovate in #4412
  • Use the xUnit test cancellation token in tests by @bjornhellander in #4423
  • Fix spelling in some test case names by @bjornhellander in #4417
  • Document DerivedTestGenerator in AGENTS.md by @AArnott in #4410
  • Set version to 1.4-beta after branching v1.3 by @AArnott in #4404
  • Update becheran/mlc action to v2 by @app/renovate in #4426
  • Update dependency coverlet.console to v10.1.1 by @app/renovate in #4424
  • Update dependency Microsoft.NET.Test.Sdk to 18.12.0 by @app/renovate in #4402
  • Update dependency dotnet-reportgenerator-globaltool to v5.6.0 by @app/renovate in #4405
  • Update dependency NuGet.Resolver to v8 by @app/renovate in #4406
  • Update dependency StyleCop.Analyzers to 1.3.180 by @app/renovate in #4407
  • Update dependency System.Security.Cryptography.Pkcs to v11 by @app/renovate in #4408

Full Changelog: 1.3.180...1.4.26-beta