Exclude some files and fix

This commit is contained in:
parallelbgls
2017-12-27 17:28:51 +08:00
parent aa5aad7da0
commit 786cf51162
6 changed files with 28 additions and 3 deletions

View File

@@ -30,6 +30,12 @@
<Compile Remove="Properties\AssemblyInfo.cs" /> <Compile Remove="Properties\AssemblyInfo.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Remove="packages.config" />
<None Remove="package-lock.json" />
<None Remove="project.json" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Modbus.Net\Modbus.Net.csproj" /> <ProjectReference Include="..\Modbus.Net\Modbus.Net.csproj" />
</ItemGroup> </ItemGroup>

View File

@@ -30,6 +30,12 @@
<Compile Remove="Properties\AssemblyInfo.cs" /> <Compile Remove="Properties\AssemblyInfo.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Remove="packages.config" />
<None Remove="package-lock.json" />
<None Remove="project.json" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="H.Opc" Version="0.9.3" /> <PackageReference Include="H.Opc" Version="0.9.3" />
</ItemGroup> </ItemGroup>

View File

@@ -29,6 +29,12 @@
<Compile Remove="Properties\AssemblyInfo.cs" /> <Compile Remove="Properties\AssemblyInfo.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Remove="packages.config" />
<None Remove="package-lock.json" />
<None Remove="project.json" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Modbus.Net\Modbus.Net.csproj" /> <ProjectReference Include="..\Modbus.Net\Modbus.Net.csproj" />
</ItemGroup> </ItemGroup>

View File

@@ -26,7 +26,7 @@ namespace Modbus.Net.Siemens
public SiemensTcpProtocolLinker(string ip, int port) public SiemensTcpProtocolLinker(string ip, int port)
: base(ip, port) : base(ip, port)
{ {
((BaseConnector)BaseConnector).AddController(new MatchDirectlySendController(new ICollection<(int,int)>[] { new List<(int,int)> { (11,11), (12,12) } }, 500)); ((BaseConnector)BaseConnector).AddController(new MatchDirectlySendController(new ICollection<(int,int)>[] { new List<(int,int)> { (11,11), (12,12) } }));
} }
/// <summary> /// <summary>

View File

@@ -12,8 +12,8 @@ namespace Modbus.Net
public class MatchDirectlySendController : MatchController public class MatchDirectlySendController : MatchController
{ {
/// <inheritdoc /> /// <inheritdoc />
public MatchDirectlySendController(ICollection<(int, int)>[] keyMatches, int acquireTime) : base(keyMatches, public MatchDirectlySendController(ICollection<(int, int)>[] keyMatches) : base(keyMatches,
acquireTime) 0)
{ {
} }

View File

@@ -30,6 +30,13 @@
<Compile Remove="Properties\AssemblyInfo.cs" /> <Compile Remove="Properties\AssemblyInfo.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Remove="packages.config" />
<None Remove="package-lock.json" />
<None Remove="project.json" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Serilog" Version="2.5.0" /> <PackageReference Include="Serilog" Version="2.5.0" />
<PackageReference Include="System.ValueTuple" Version="4.4.0" /> <PackageReference Include="System.ValueTuple" Version="4.4.0" />