1
- <? xml version = " 1.0 " encoding = " utf-8 " ? >
2
- < Project ToolsVersion = " 4.0 " xmlns = " http://schemas.microsoft.com/developer/msbuild/2003 " DefaultTargets = " Build " >
1
+ <Project Sdk = " Microsoft.NET.Sdk " >
2
+
3
3
<PropertyGroup >
4
- <ProjectGuid >{9682C3A4-4703-417C-B29C-D68AFBD97EC6}</ProjectGuid >
5
- <ProjectTypeGuids >{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids >
6
- <Configuration Condition =" '$(Configuration)' == '' " >Debug</Configuration >
7
- <Platform Condition =" '$(Platform)' == '' " >AnyCPU</Platform >
8
- <OutputType >Library</OutputType >
9
- <RootNamespace >SharpModbus</RootNamespace >
10
- <AssemblyName >SharpModbus</AssemblyName >
11
- <TargetFrameworkVersion >v4.0</TargetFrameworkVersion >
12
- <AppDesignerFolder >Properties</AppDesignerFolder >
13
- <TargetFrameworkProfile />
14
- </PropertyGroup >
15
- <PropertyGroup Condition =" '$(Platform)' == 'AnyCPU' " >
16
- <PlatformTarget >AnyCPU</PlatformTarget >
17
- </PropertyGroup >
18
- <PropertyGroup Condition =" '$(Configuration)' == 'Debug' " >
19
- <OutputPath >bin\Debug\</OutputPath >
20
- <DebugSymbols >True</DebugSymbols >
21
- <DebugType >Full</DebugType >
22
- <Optimize >False</Optimize >
23
- <CheckForOverflowUnderflow >True</CheckForOverflowUnderflow >
24
- <DefineConstants >DEBUG;TRACE</DefineConstants >
25
- </PropertyGroup >
26
- <PropertyGroup Condition =" '$(Configuration)' == 'Release' " >
27
- <OutputPath >bin\Release\</OutputPath >
28
- <DebugSymbols >False</DebugSymbols >
29
- <DebugType >None</DebugType >
30
- <Optimize >True</Optimize >
31
- <CheckForOverflowUnderflow >False</CheckForOverflowUnderflow >
32
- <DefineConstants >TRACE</DefineConstants >
4
+ <TargetFrameworks >net40;netstandard2.0</TargetFrameworks >
5
+ <PackageId >SharpModbus</PackageId >
6
+ <PackageVersion >1.0.6.0</PackageVersion >
7
+ <Description >C# Modbus Tools</Description >
8
+ <Authors >Samuel Ventura</Authors >
9
+ <PackageProjectUrl >https://github.com/samuelventura/SharpModbus</PackageProjectUrl >
10
+ <PackageLicenseUrl >https://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl >
11
+ <PackageTags >Modbus TCP RTU Master Slave Serial</PackageTags >
33
12
</PropertyGroup >
13
+
34
14
<ItemGroup >
35
- <Reference Include =" System" />
36
- <Reference Include =" System.Core" >
37
- <RequiredTargetFramework >3.5</RequiredTargetFramework >
38
- </Reference >
39
- <Reference Include =" System.Xml" />
40
- <Reference Include =" System.Xml.Linq" >
41
- <RequiredTargetFramework >3.5</RequiredTargetFramework >
42
- </Reference >
43
15
</ItemGroup >
44
- <ItemGroup >
45
- <Compile Include =" Helpers.cs" />
46
- <Compile Include =" IModbusProtocol.cs" />
47
- <Compile Include =" IModbusScanner.cs" />
48
- <Compile Include =" IModbusStream.cs" />
49
- <Compile Include =" IModbusWrapper.cs" />
50
- <Compile Include =" ModbusF02ReadInputs.cs" />
51
- <Compile Include =" IModbusCommand.cs" />
52
- <Compile Include =" ModbusF01ReadCoils.cs" />
53
- <Compile Include =" ModbusF03ReadHoldingRegisters.cs" />
54
- <Compile Include =" ModbusF04ReadInputRegisters.cs" />
55
- <Compile Include =" ModbusF05WriteCoil.cs" />
56
- <Compile Include =" ModbusF06WriteRegister.cs" />
57
- <Compile Include =" ModbusF15WriteCoils.cs" />
58
- <Compile Include =" ModbusF16WriteRegisters.cs" />
59
- <Compile Include =" ModbusHelper.cs" />
60
- <Compile Include =" ModbusMaster.cs" />
61
- <Compile Include =" ModbusModel.cs" />
62
- <Compile Include =" ModbusParser.cs" />
63
- <Compile Include =" ModbusRTUScanner.cs" />
64
- <Compile Include =" ModbusRTUWrapper.cs" />
65
- <Compile Include =" ModbusTCPScanner.cs" />
66
- <Compile Include =" ModbusTCPWrapper.cs" />
67
- <Compile Include =" Properties\AssemblyInfo.cs" />
68
- <Compile Include =" ModbusRTUProtocol.cs" />
69
- <Compile Include =" ModbusSerialStream.cs" />
70
- <Compile Include =" ModbusSocketStream.cs" />
71
- <Compile Include =" ModbusTCPProtocol.cs" />
72
- </ItemGroup >
73
- <ItemGroup >
74
- <None Include =" package.nuspec" />
16
+
17
+ <ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0' " >
18
+ <PackageReference Include =" System.IO.Ports" Version =" 4.4.0" />
75
19
</ItemGroup >
76
- < Import Project = " $(MSBuildToolsPath)\Microsoft.CSharp.targets " />
77
- </Project >
20
+
21
+ </Project >
0 commit comments