Skip to content

Commit f7cfb4f

Browse files
committed
Adding changes to look into the netcoreapp2.2 folder to find the plugin dlls.
1 parent f5d79e7 commit f7cfb4f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

eFormAPI/eFormAPI.Web/Hosting/Helpers/PluginHelper.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,18 +96,18 @@ public static List<IEformPlugin> GetAllPlugins()
9696
{
9797
List<string> pluginList;
9898

99-
#if DEBUG
99+
//#if DEBUG
100100
Console.ForegroundColor = ConsoleColor.Red;
101101
Console.WriteLine("RUNNING IN DEBUG MODE!");
102102
pluginList = Directory.GetFiles(Path.Combine(directory, "netcoreapp2.2"))
103103
.Where(x => x.EndsWith("Pn.dll") && Path.GetFileName(x) != "eFormApi.BasePn.dll")
104104
.ToList();
105-
#else
106-
pluginList = Directory.GetFiles(directory)
107-
.Where(x => x.EndsWith("Pn.dll") && Path.GetFileName(x) != "eFormApi.BasePn.dll")
108-
.ToList();
109-
110-
#endif
105+
//#else
106+
// pluginList = Directory.GetFiles(directory)
107+
// .Where(x => x.EndsWith("Pn.dll") && Path.GetFileName(x) != "eFormApi.BasePn.dll")
108+
// .ToList();
109+
//
110+
//#endif
111111

112112
Console.ForegroundColor = ConsoleColor.Green;
113113
Console.WriteLine($"{pluginList.Count} number of plugins found");

0 commit comments

Comments
 (0)