Skip to content

Search EricksonLopez.* Ecosystem

Type a library name, NuGet package ID, .NET type, or architectural concept to search across the portal.

Troubleshooting — EricksonLopez.Auditing

Common integration issues when deploying EricksonLopez.Auditing (2.0.0) under strict .NET 10 (ImplicitUsings=disable, Nullable=enable) and Native AOT builds.

  • Symptom: CS0234: The type or namespace name 'Abstractions' does not exist in the namespace 'EricksonLopez.Auditing'.
  • Cause: Even though the NuGet package is named EricksonLopez.Auditing.Abstractions, its C# types (AuditRecord, IAuditStore, AuditQuery, TenantId) are declared in namespace EricksonLopez.Auditing;.
  • Fix: Import using EricksonLopez.Auditing; instead of using EricksonLopez.Auditing.Abstractions;.
  • Blank TenantId: new TenantId("") or whitespace throws ArgumentException (ArgumentException.ThrowIfNullOrWhiteSpace). Always validate tenant context upstream or pass AuditContext.SystemTenantId (note: in v2.0.0, SystemTenantId is static readonly, not const).
  • Missing AuditId / AuditScope: If you installed only EricksonLopez.Auditing.Abstractions, add EricksonLopez.Auditing to access AuditId.NewId(), AuditScope, and HmacAuditIntegrityService.
  • Ambiguous AuditRecordBuilder (CS0104): Both EricksonLopez.Auditing and EricksonLopez.Auditing.Testing define AuditRecordBuilder. If you import both namespaces, qualify EricksonLopez.Auditing.AuditRecordBuilder or qualify EricksonLopez.Auditing.Testing.InMemoryAuditStore without importing the testing namespace.
  • EF Core / MongoDB trimming errors: EricksonLopez.Auditing.EntityFrameworkCore and EricksonLopez.Auditing.MongoDb explicitly set IsAotCompatible=false and EnableTrimAnalyzer=false. Use PostgreSql, SqlServer, MySql, Oracle, or Sqlite when targeting <PublishAot>true</PublishAot>.
  • Dapper reflection note: EricksonLopez.Auditing.Dapper inherits IsAotCompatible=true in .csproj, but Directory.Build.props flags that underlying Dapper v2.1.79 relies on Reflection.Emit for some mapping paths — test your exact queries under Native AOT before shipping.
  • Unpublished local satellites: Analyzers, AzureKeyVault, Outbox, and Serilog are local 3.1.0 workspace projects with zero NuGet releases.