Skip to content

Commit

Permalink
Fix debug compilation issue in VSCode
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinvanhunen committed Jul 24, 2023
1 parent fff661b commit 26287c8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Commands/Base/PnPPowerShellModuleInitializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,8 @@ public class PnPPowerShellModuleInitializer : IModuleAssemblyInitializer

static PnPPowerShellModuleInitializer()
{
#if DEBUG
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(Path.GetDirectoryName(s_binBasePath), "Common");
#endif
s_dependencies = new HashSet<string>(StringComparer.Ordinal);
s_psEditionDependencies = new HashSet<string>(StringComparer.Ordinal);
s_proxy = AssemblyLoadContextProxy.CreateLoadContext("pnp-powershell-load-context");
Expand Down

0 comments on commit 26287c8

Please sign in to comment.