From 47e597d3b0c6f70de3022567556d4c7b03fcf8b0 Mon Sep 17 00:00:00 2001 From: pavelbannov Date: Wed, 15 Jul 2020 14:18:47 +0300 Subject: [PATCH] Autofac: fix --- common/ASC.Common/DependencyInjection/AutofacExtension.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/ASC.Common/DependencyInjection/AutofacExtension.cs b/common/ASC.Common/DependencyInjection/AutofacExtension.cs index c1c7d2a820..c88c68fe82 100644 --- a/common/ASC.Common/DependencyInjection/AutofacExtension.cs +++ b/common/ASC.Common/DependencyInjection/AutofacExtension.cs @@ -34,7 +34,7 @@ namespace ASC.Common.DependencyInjection if (!Path.IsPathRooted(folder)) { - if (currentDir.EndsWith(Path.Combine(Path.GetFileName(folder), Assembly.GetCallingAssembly().GetName().Name, subfolder))) + if (currentDir.EndsWith(Path.Combine(Path.GetFileName(folder), Assembly.GetEntryAssembly().GetName().Name, subfolder))) { productsDir = Path.GetFullPath(Path.Combine("..", "..")); }