diff --git a/src/Commands/Base/PnPPowerShellModuleInitializer.cs b/src/Commands/Base/PnPPowerShellModuleInitializer.cs index f87b2c1e6..7b034d6fa 100644 --- a/src/Commands/Base/PnPPowerShellModuleInitializer.cs +++ b/src/Commands/Base/PnPPowerShellModuleInitializer.cs @@ -25,8 +25,8 @@ static PnPPowerShellModuleInitializer() s_binBasePath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location))); s_binCommonPath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "..", "..", "..", "..", "..", "src", "ALC", "bin", "Debug", "net6.0")); #else - s_binBasePath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "..")); - s_binCommonPath = Path.Combine(s_binBasePath, "Common"); + s_binBasePath = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location))); + s_binCommonPath = Path.Combine(Path.GetDirectoryName(s_binBasePath), "Common"); #endif s_dependencies = new HashSet(StringComparer.Ordinal); s_psEditionDependencies = new HashSet(StringComparer.Ordinal); diff --git a/src/Commands/PnP.PowerShell.csproj b/src/Commands/PnP.PowerShell.csproj index 9f465b7ae..9fd492c12 100644 --- a/src/Commands/PnP.PowerShell.csproj +++ b/src/Commands/PnP.PowerShell.csproj @@ -46,7 +46,7 @@ TRACE;$(DefineConstants);DEBUG - TRACE;$(DefineConstants);DEBUG + TRACE;$(DefineConstants);Release