- Pinned at
9.0.0inDirectory.Packages.props - Latest available:
10.0.102
Upgrading introduces 189 new analyzer errors, primarily:
- CA2000 - Dispose objects before losing scope (stricter detection in Scp11 code)
- CA1724 - Type name conflicts with namespace (
DependencyInjectionclass vsMicrosoft.Extensions.DependencyInjectionnamespace)
Files with known violations:
Yubico.YubiKit.Core/src/Protocols/SmartCard/Scp/ScpState.Scp11.cs- Multiple CA2000 (Tlv, ECDiffieHellman disposal)Yubico.YubiKit.Core/src/DependencyInjection.cs- CA1724 naming conflict
- Upgrade
Microsoft.CodeAnalysis.NetAnalyzersto10.0.102inDirectory.Packages.props - Fix CA2000 violations (add
usingdeclarations or explicit disposal) - Fix CA1724 by renaming the extension type or suppressing with justification
- Build with zero errors/warnings before committing