diff --git a/src/CompanionSpecs/DI/DiNodeManager.cs b/src/CompanionSpecs/DI/DiNodeManager.cs index 26ae270..d62f831 100644 --- a/src/CompanionSpecs/DI/DiNodeManager.cs +++ b/src/CompanionSpecs/DI/DiNodeManager.cs @@ -1,4 +1,4 @@ -namespace OpcPlc.CompanionSpecs.DI; +namespace OpcPlc.CompanionSpecs.DI; using Opc.Ua; using Opc.Ua.Server; @@ -37,7 +37,8 @@ protected override NodeStateCollection LoadPredefinedNodes(ISystemContext contex { // Application running as a snap uanodesPath = Path.Join(snapLocation, uanodesPath); - } + } + var predefinedNodes = new NodeStateCollection(); predefinedNodes.LoadFromBinaryResource(context, uanodesPath, // CopyToOutputDirectory -> PreserveNewest.