Skip to content

Commit 8a7eac7

Browse files
author
Chris Maunder
committed
Comments
1 parent 0ac99b6 commit 8a7eac7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/SDK/NET/Backend/ModuleRunnerBase.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,8 @@ protected string GetModuleDirectoryPath()
645645
string moduleDirPath = AppContext.BaseDirectory;
646646
DirectoryInfo? info = new DirectoryInfo(moduleDirPath);
647647

648-
if (SystemInfo.IsDevelopmentCode)
648+
// If we're in /bin/[Debug|Release]/netx.0
649+
if (SystemInfo.IsDevelopmentCode)
649650
{
650651
while (info != null)
651652
{
@@ -657,7 +658,7 @@ protected string GetModuleDirectoryPath()
657658
}
658659
}
659660
}
660-
else
661+
else // are we in /bin?
661662
{
662663
if (info?.Name.ToLower() == "bin")
663664
info = info.Parent;

0 commit comments

Comments
 (0)