diff --git a/NewLife.Siemens/Drivers/SiemensS7Driver.cs b/NewLife.Siemens/Drivers/SiemensS7Driver.cs index 91075ac..cec1c23 100644 --- a/NewLife.Siemens/Drivers/SiemensS7Driver.cs +++ b/NewLife.Siemens/Drivers/SiemensS7Driver.cs @@ -34,7 +34,7 @@ public class SiemensS7Driver : DriverBase /// 创建驱动参数对象,可序列化成Xml/Json作为该协议的参数模板 /// /// - public override IDriverParameter GetDefaultParameter() => new SiemensParameter + protected override IDriverParameter OnCreateParameter() => new SiemensParameter { Address = "127.0.0.1:102", Rack = 0, diff --git a/NewLife.Siemens/NewLife.Siemens.csproj b/NewLife.Siemens/NewLife.Siemens.csproj index 3060acf..cec31b1 100644 --- a/NewLife.Siemens/NewLife.Siemens.csproj +++ b/NewLife.Siemens/NewLife.Siemens.csproj @@ -55,8 +55,8 @@ - - + + diff --git a/XUnitTest/XUnitTest.csproj b/XUnitTest/XUnitTest.csproj index 0c66a32..2ec036f 100644 --- a/XUnitTest/XUnitTest.csproj +++ b/XUnitTest/XUnitTest.csproj @@ -10,7 +10,7 @@ - + all