Autofac: fix

This commit is contained in:
pavelbannov 2020-07-15 14:18:47 +03:00
parent baa71247d8
commit 47e597d3b0

View File

@ -34,7 +34,7 @@ namespace ASC.Common.DependencyInjection
if (!Path.IsPathRooted(folder)) 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("..", "..")); productsDir = Path.GetFullPath(Path.Combine("..", ".."));
} }