Very simply, it is NModbus4 build for .NET (NOT .NET Framework)
Here is the definition of NModbus4
NModbus4 is a C# implementation of the Modbus protocol.
Here is a snippet from NModbus4 documentation
NModbus is a C# implementation of the Modbus protocol. Provides connectivity to Modbus slave compatible devices and applications. Supports serial ASCII, serial RTU, TCP, and UDP protocols. NModbus4 it's a fork of NModbus(https://code.google.com/p/nmodbus). NModbus4 differs from the original NModbus in following:
- removed USB support(FtdAdapter.dll)
- removed log4net dependency
- removed Unme.Common.dll dependency
- assembly renamed to NModbus4.dll
- target framework changed to .NET 4
Because
- The original library NModbus4 is not under active development, the last commit is dated 5 years ago
- There is a need to use NModbus4 with .NET projects, but NModbus4 support only .NET Framework (Not .NET)
NModbus4.NetCore is a copy of NModbus4 with the following differences
- As mention earlier, The main difference is the Target Framework.
- NModbus4.NetCore supports the SerialPort out-of-the-box.
NModbus4 needs some configuration to support SerialPort that (by Defining the Compile-time constant). - Supporting .NET with this library does NOT mean expanding the NModbus4
I mean NModbus4.NetCore will work only with .NET.
if you want to use this library with .NET Framework you are in the wrong place, go to the original library then.
.NET Standard is NOT supported, .NET Framework is NOT supported, JUST .NET AND ONLY .NET
https://www.nuget.org/packages/NModbus4.NetCore
Install-Package NModbus4.NetCore
or
dotnet add package NModbus4.NetCore
or
<PackageReference Include="NModbus4.NetCore" Version="1.2.0" />
The followings are the enhancement that I plan to add Add Coverage badge and Nuget badge
- PRs is more than Welcome.
- I do not care about the style of commit message
just describe what you did in a meaningful way, in the style you like. - You do not have to format the code.
I am obsessive with formatting the code, and I will format the whole solution when merging any PR. - Do not worry if you code with other style, I will change the style to accomodate mine
So you do not have to worry about changing your current style. - If you can help with the CI/CD operations, it is more than welcome, I do not have that much experience with that.
- Any PR which downgrade the TFM or changing the C# code to make it use older C# constructs will be rejected