diff --git a/TestingModule/ViewModels/CommandTreeViewModel.cs b/TestingModule/ViewModels/CommandTreeViewModel.cs index b39b7e5..28fd431 100644 --- a/TestingModule/ViewModels/CommandTreeViewModel.cs +++ b/TestingModule/ViewModels/CommandTreeViewModel.cs @@ -189,7 +189,7 @@ namespace TestingModule.ViewModels { try { - var assembly = Assembly.LoadFile(dllPath); + var assembly = Assembly.LoadFrom(dllPath); Assemblies.Add(assembly); // 加载对应的XML注释文件 (项目没有用到) diff --git a/UIShare/GlobalVariable/StepRunning.cs b/UIShare/GlobalVariable/StepRunning.cs index e426eff..539625c 100644 --- a/UIShare/GlobalVariable/StepRunning.cs +++ b/UIShare/GlobalVariable/StepRunning.cs @@ -558,7 +558,7 @@ namespace UIShare { try { - //instance = _devices.DeviceDic[targetType.Name]; + instance = _deviceManager.DeviceMap[targetType.Name]; } catch (Exception ex) {