Upgrading Autofac 7 to 8
Breaking7.1.0 → 8.4.0Breaking2New2Changed4Fixed7Other3
BreakingUpgrade verdict
2 breaking changes.
In plain terms
- ResolveRequest is now a value type that cannot be modified after creation, which can break code that relied on it being a class.
- A small compatibility helper type that Autofac provided for older .NET versions is no longer publicly visible. Only apps on older .NET Standard targets that used this helper directly are affected.
Must act 2 items need code or config changes
Target frameworks requirement changed in 8.1.0: .NETFramework6.0, .NETFramework7.0, .NETStandard2.0, .NETStandard2.1 → .NETStandard2.0, .NETStandard2.1, net6.0, net7.0, net8.0.
What you must change
Breaking2
Converts ResolveRequest into a readonly struct.
ResolveRequestChanges the RequiresUnreferencedCodeAttribute shim from public to internal, affecting callers on older .NET Standard frameworks that rely on it.
RequiresUnreferencedCodeAttribute