Ir al contenido

Buscar en el Ecosistema EricksonLopez.*

Escribe el nombre de una librería, ID de paquete NuGet, tipo .NET o concepto arquitectónico para buscar en el portal.

Troubleshooting — EricksonLopez.Auditing

Solución a los errores más frecuentes al integrar EricksonLopez.Auditing (2.0.0) bajo .NET 10 (ImplicitUsings=disable, Nullable=enable) y Native AOT.

  • Síntoma: CS0234: The type or namespace name 'Abstractions' does not exist in the namespace 'EricksonLopez.Auditing'.
  • Causa: Aunque el paquete NuGet se llama EricksonLopez.Auditing.Abstractions, sus tipos (AuditRecord, IAuditStore, AuditQuery, TenantId) declaran namespace EricksonLopez.Auditing;.
  • Solución: Usa using EricksonLopez.Auditing; en lugar de using EricksonLopez.Auditing.Abstractions;.
  • AuditRecordBuilder ambiguo (CS0104): Tanto EricksonLopez.Auditing como EricksonLopez.Auditing.Testing definen AuditRecordBuilder. Califica explícitamente EricksonLopez.Auditing.AuditRecordBuilder o referencia EricksonLopez.Auditing.Testing.InMemoryAuditStore sin importar el namespace de testing.
  • TenantId vacío: new TenantId("") lanza ArgumentException (ThrowIfNullOrWhiteSpace). Usa AuditContext.SystemTenantId (static readonly en v2.0.0) cuando aplique a operaciones de sistema.
  • EF Core / MongoDB: Establecen IsAotCompatible=false y EnableTrimAnalyzer=false. Prefiere PostgreSql, SqlServer, MySql, Oracle o Sqlite en despliegues <PublishAot>true</PublishAot>.
  • Dapper v2.1.79: Aunque el .csproj hereda IsAotCompatible=true, Directory.Build.props advierte el uso de Reflection.Emit en Dapper.
  • Paquetes no publicados: Analyzers, AzureKeyVault, Outbox y Serilog solo existen localmente en 3.1.0.