Skip to content

Commit

Permalink
Fix module path load issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Gautam Sheth committed Jul 20, 2023
1 parent eccbf3c commit b10ccad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Commands/Base/PnPPowerShellModuleInitializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>(StringComparer.Ordinal);
s_psEditionDependencies = new HashSet<string>(StringComparer.Ordinal);
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/PnP.PowerShell.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<DefineConstants>TRACE;$(DefineConstants);DEBUG</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<DefineConstants>TRACE;$(DefineConstants);DEBUG</DefineConstants>
<DefineConstants>TRACE;$(DefineConstants);Release</DefineConstants>
</PropertyGroup>
<ItemGroup>
<None Remove="Resources\parker.ico" />
Expand Down

0 comments on commit b10ccad

Please sign in to comment.