Skip to content

Commit

Permalink
fix(settings): 配置文件改为引用机制,新增一个空设备的节点。
Browse files Browse the repository at this point in the history
  • Loading branch information
dathlin committed Aug 12, 2018
1 parent 659e7d4 commit ec98926
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 159 deletions.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -18,7 +18,11 @@ Install-Package SharpNodeSettings
<Settings>
<NodeClass Name="Devices" Description="所有的设备的集合对象">
<NodeClass Name="分厂一" Description="">
<NodeClass Name="车间一" Description="" />
<NodeClass Name="车间一" Description="">
<DeviceNode Name="测试空设备" Description="此设备安装在角落,编号0001" DeviceType="0" ConnectTimeOut="2000" CreateTime="2018/8/12 9:26:27" InstallationDate="2018/8/12 9:26:27">
<DeviceRequest Name="数据请求" Description="一次完整的数据请求" Address="0" Length="10" CaptureInterval="1000" PraseRegularCode="B" />
</DeviceNode>
</NodeClass>
<NodeClass Name="车间二" Description="">
<DeviceNode Name="ModbusTcp客户端" Description="这是描述" DeviceType="10" ConnectTimeOut="1000" CreateTime="2018/8/9 19:58:49" InstallationDate="2018/8/9 19:58:49" IpAddress="127.0.0.1" Port="502" Station="1" IsAddressStartWithZero="true" IsWordReverse="false" IsStringReverse="false">
<DeviceRequest Name="数据请求" Description="一次完整的数据请求" Address="0" Length="30" CaptureInterval="1000" PraseRegularCode="ABCD" />
Expand Down
Expand Up @@ -255,13 +255,14 @@
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="App.ico">
<Content Include="..\XmlFile\settings.xml">
<Link>settings.xml</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Opc.Ua.CertificateGenerator.exe">
<Content Include="App.ico">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="settings.xml">
<Content Include="Opc.Ua.CertificateGenerator.exe">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="SharpNodeSettingsServer.Config.xml">
Expand Down
38 changes: 0 additions & 38 deletions SharpNodeSettings.OpcUaServer/settings.xml

This file was deleted.

Expand Up @@ -60,7 +60,8 @@
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Content Include="settings.xml">
<Content Include="..\XmlFile\settings.xml">
<Link>settings.xml</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
Expand Down
38 changes: 0 additions & 38 deletions SharpNodeSettings.RedisServer/settings.xml

This file was deleted.

Expand Up @@ -56,7 +56,8 @@
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="settings.xml">
<Content Include="..\XmlFile\settings.xml">
<Link>settings.xml</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
Expand Down
38 changes: 0 additions & 38 deletions SharpNodeSettings.SampleServer/settings.xml

This file was deleted.

3 changes: 2 additions & 1 deletion SharpNodeSettings.Tools/SharpNodeSettings.Tools.csproj
Expand Up @@ -74,7 +74,8 @@
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="settings.xml">
<Content Include="..\XmlFile\settings.xml">
<Link>settings.xml</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
Expand Down
38 changes: 0 additions & 38 deletions SharpNodeSettings.Tools/settings.xml

This file was deleted.

0 comments on commit ec98926

Please sign in to comment.