ModuleInfo Dependency needs to be trimmed so there is no white space at the end (credit @maxmontgmx))

This commit is contained in:
vnetonline 2023-08-01 21:00:22 +10:00
parent 4d63c6266c
commit d2df3b2d9a

View File

@ -212,9 +212,9 @@ namespace Oqtane.Repository
{
foreach (var assembly in moduledefinition.Dependencies.Replace(".dll", "").Split(',', StringSplitOptions.RemoveEmptyEntries).Reverse())
{
if (!serverState.Assemblies.Contains(assembly))
if (!serverState.Assemblies.Contains(assembly.Trim()))
{
serverState.Assemblies.Insert(0, assembly);
serverState.Assemblies.Insert(0, assembly.Trim());
}
}
}