Skip to content

Commit da2e2c2

Browse files
nivalxerliuhaoyang
andauthored
bump autofac to 7.0.0 and fix build error (#309)
* bump autofac to 7.0.0 and fix build error * limit autofac version --------- Co-authored-by: Liu Haoyang <liuhaoyang1221@hotmail.com>
1 parent b1a06b5 commit da2e2c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AspectCore.Extensions.Autofac/ActivationResolveMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void Execute(ResolveRequestContext context, Action<ResolveRequestContext>
9292

9393
if (availableConstructors.Length == 0)
9494
{
95-
throw new NoConstructorsFoundException(proxyType, $"No constructors on type '{proxyType}' can be found with the constructor finder '{constructorFinder}'.");
95+
throw new NoConstructorsFoundException(proxyType, constructorFinder);
9696
}
9797

9898
var binders = new ConstructorBinder[availableConstructors.Length];

src/AspectCore.Extensions.Autofac/AspectCore.Extensions.Autofac.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
<ItemGroup>
24-
<PackageReference Include="Autofac" Version="6.4.0" />
24+
<PackageReference Include="Autofac" Version="[7.0.0, 8.0.0)" />
2525
</ItemGroup>
2626

2727
<ItemGroup>

0 commit comments

Comments
 (0)