Repository navigation
1.4.26-beta
Pre-release
Pre-release
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 explicitpublicmodifier on a member of a type whose effective accessibility isinternal,private, orprivate protected. The rule is disabled by default. Enable it withdotnet_diagnostic.SA1415.severity = warning. A code fix changespublictointernal. (#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 exampleT otheronIFoo<T>). Ordinary inherited names are still reported. (#4427) - SA1316 no longer treats deconstruction targets such as
(name, Value) = tas tuple element names whenincludeInferredTupleElementNamesis 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
safemodifier is still a preview feature, so only those tests requestLanguageVersion.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
objparameters 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
includeInferredTupleElementNamesis on.
All changes
New rules
Fixes
- SA1315: Allow deviating names for obj and generic type parameters by @AArnott in #4427
- SA1316: Ignore inferred names in deconstruction targets by @bjornhellander in #4419
- Remove some SA1629 allocations by @bjornhellander in #4416
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