NModbus4.NetCore 2.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package NModbus4.NetCore --version 2.0.1                
NuGet\Install-Package NModbus4.NetCore -Version 2.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NModbus4.NetCore" Version="2.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NModbus4.NetCore --version 2.0.1                
#r "nuget: NModbus4.NetCore, 2.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NModbus4.NetCore as a Cake Addin
#addin nuget:?package=NModbus4.NetCore&version=2.0.1

// Install NModbus4.NetCore as a Cake Tool
#tool nuget:?package=NModbus4.NetCore&version=2.0.1                

What is NModbus4.NetCore?

Very simply, it is NModbus4 build for .NET (NOT .NET Framework)<br/>

Ok, so what is NModbus4 in the first place?

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:

  1. removed USB support(FtdAdapter.dll)
  2. removed log4net dependency
  3. removed Unme.Common.dll dependency
  4. assembly renamed to NModbus4.dll
  5. target framework changed to .NET 4

Why NModbus4.NetCore?

Because

  1. The original library NModbus4 is not under active development, the last commit is dated 5 years ago <br/>
  2. There is a need to use NModbus4 with .NET projects, but NModbus4 support only .NET Framework (Not .NET) <br/>

What is the differences between NModbus4 and NModbus4.NetCore?

NModbus4.NetCore is a copy of NModbus4 with the following differences

  1. As mention earlier, The main difference is the Target Framework.
  2. NModbus4.NetCore supports the SerialPort out-of-the-box. <br/> NModbus4 needs some configuration to support SerialPort that (by Defining the Compile-time constant).
  3. Supporting .NET with this library does NOT mean expanding the NModbus4 <br/> I mean NModbus4.NetCore will work only with .NET. <br/> if you want to use this library with .NET Framework you are in the wrong place, go to the original library then.<br/> .NET Standard is NOT supported, .NET Framework is NOT supported, JUST .NET AND ONLY .NET

Nuget Package<br/>

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" />

Roadmap

The followings are the enhancement that I plan to add Add Coverage badge and Nuget badge

Contributaions

  1. PRs is more than Welcome.
  2. I do not care about the style of commit message <br/> just describe what you did in a meaningful way, in the style you like.
  3. You do not have to format the code.<br/> I am obsessive with formatting the code, and I will format the whole solution when merging any PR.
  4. Do not worry if you code with other style, I will change the style to accomodate mine <br/> So you do not have to worry about changing your current style.
  5. If you can help with the CI/CD operations, it is more than welcome, I do not have that much experience with that.
  6. Any PR which downgrade the TFM or changing the C# code to make it use older C# constructs will be rejected
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0 15,399 1/22/2023
2.0.1 11,685 11/20/2021
1.3.2 3,990 8/22/2021
1.2.0 1,413 11/13/2020
1.0.1 4,285 2/23/2020