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.DistributedLock

Frequent setup issues with EricksonLopez.DistributedLock (1.0.0).

  • Symptom: NU1101: Unable to find package EricksonLopez.DistributedLock.
  • Fix: Install EricksonLopez.DistributedLock.Abstractions plus a dialect provider (.PostgreSql, .SqlServer, .Sqlite, .Redis, etc.).
  • Symptom: Compiler cannot find AddSqliteDistributedLock even after importing EricksonLopez.DistributedLock.Sqlite.
  • Fix: Add using Microsoft.Extensions.DependencyInjection; (ImplicitUsings=disable), as all dialect DI extensions reside in Microsoft.Extensions.DependencyInjection. Also ensure services.AddLogging() is registered in standalone test/console containers.

EricksonLopez.DistributedLock.Redis sets IsAotCompatible=true, but runtime trimming behavior depends on the underlying StackExchange.Redis version in use.