mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-20 07:56:50 +00:00
fix(hotfix): skip CrestronOnvif.dll when scanning assemblies at startup
Co-authored-by: ngenovese11 <23391587+ngenovese11@users.noreply.github.com>
This commit is contained in:
parent
a9fdf30880
commit
6ab3ed9911
1 changed files with 9 additions and 0 deletions
|
|
@ -36,8 +36,17 @@ namespace PepperDash.Essentials.Core
|
|||
{
|
||||
var programAssemblies = Directory.GetFiles(InitialParametersClass.ProgramDirectory.ToString(), "*.dll");
|
||||
|
||||
// Assemblies known to cause load errors that should be skipped
|
||||
var assembliesToSkip = new[] { "CrestronOnvif.dll" };
|
||||
|
||||
foreach (var assembly in programAssemblies)
|
||||
{
|
||||
if (assembliesToSkip.Any(a => Path.GetFileName(assembly).Equals(a, StringComparison.OrdinalIgnoreCase)))
|
||||
{
|
||||
Debug.LogMessage(LogEventLevel.Verbose, "Skipping assembly: {assemblyName}", null, assembly);
|
||||
continue;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
Assembly.LoadFrom(assembly);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue