From 84d234e343685ddceb955986cc15e8a4486801b6 Mon Sep 17 00:00:00 2001 From: Mushinskiy Date: Wed, 24 Dec 2025 10:30:05 +0200 Subject: [PATCH 1/2] Update target frameworks to net10.0, netstandard2.0, netstandard2.1. --- .../ThreeByte.LinkLib.NetBooter/NetBooterLink.cs | 2 +- .../ThreeByte.LinkLib.NetBooter.csproj | 3 ++- .../ThreeByte.LinkLib.ProjectorLink.csproj | 3 ++- .../ThreeByte.LinkLib.SerialLink/FramedSerialLink.cs | 4 ++-- .../ThreeByte.LinkLib.SerialLink.csproj | 3 ++- .../ThreeByte.LinkLib.Shared/ThreeByte.LinkLib.Shared.csproj | 3 ++- ThreeByte.LinkLib/ThreeByte.LinkLib.TcpLink/AsyncTcpLink.cs | 4 ++-- .../ThreeByte.LinkLib.TcpLink.csproj | 3 ++- ThreeByte.LinkLib/ThreeByte.LinkLib.UdpLink/AsyncUdpLink.cs | 2 +- .../ThreeByte.LinkLib.UdpLink.csproj | 5 +++-- 10 files changed, 19 insertions(+), 13 deletions(-) diff --git a/ThreeByte.LinkLib/ThreeByte.LinkLib.NetBooter/NetBooterLink.cs b/ThreeByte.LinkLib/ThreeByte.LinkLib.NetBooter/NetBooterLink.cs index 2d15d0b..d6f6805 100644 --- a/ThreeByte.LinkLib/ThreeByte.LinkLib.NetBooter/NetBooterLink.cs +++ b/ThreeByte.LinkLib/ThreeByte.LinkLib.NetBooter/NetBooterLink.cs @@ -32,7 +32,7 @@ public bool this[int port] } } - public event PropertyChangedEventHandler PropertyChanged; + public event PropertyChangedEventHandler? PropertyChanged; public event EventHandler? ErrorOccurred; public void Power(int outlet, bool state) diff --git a/ThreeByte.LinkLib/ThreeByte.LinkLib.NetBooter/ThreeByte.LinkLib.NetBooter.csproj b/ThreeByte.LinkLib/ThreeByte.LinkLib.NetBooter/ThreeByte.LinkLib.NetBooter.csproj index 824f710..ec69a40 100644 --- a/ThreeByte.LinkLib/ThreeByte.LinkLib.NetBooter/ThreeByte.LinkLib.NetBooter.csproj +++ b/ThreeByte.LinkLib/ThreeByte.LinkLib.NetBooter/ThreeByte.LinkLib.NetBooter.csproj @@ -1,8 +1,9 @@  - netstandard2.1 + net10.0;netstandard2.0;netstandard2.1 enable + latest diff --git a/ThreeByte.LinkLib/ThreeByte.LinkLib.ProjectorLink/ThreeByte.LinkLib.ProjectorLink.csproj b/ThreeByte.LinkLib/ThreeByte.LinkLib.ProjectorLink/ThreeByte.LinkLib.ProjectorLink.csproj index 887e0c5..3f9cdcd 100644 --- a/ThreeByte.LinkLib/ThreeByte.LinkLib.ProjectorLink/ThreeByte.LinkLib.ProjectorLink.csproj +++ b/ThreeByte.LinkLib/ThreeByte.LinkLib.ProjectorLink/ThreeByte.LinkLib.ProjectorLink.csproj @@ -1,8 +1,9 @@  - netstandard2.1 + net10.0;netstandard2.0;netstandard2.1 enable + latest diff --git a/ThreeByte.LinkLib/ThreeByte.LinkLib.SerialLink/FramedSerialLink.cs b/ThreeByte.LinkLib/ThreeByte.LinkLib.SerialLink/FramedSerialLink.cs index 3f383e4..f44f612 100644 --- a/ThreeByte.LinkLib/ThreeByte.LinkLib.SerialLink/FramedSerialLink.cs +++ b/ThreeByte.LinkLib/ThreeByte.LinkLib.SerialLink/FramedSerialLink.cs @@ -158,7 +158,7 @@ public void Dispose() _serialLink.Dispose(); } - private void OnDataReceived(object sender, EventArgs e) + private void OnDataReceived(object? sender, EventArgs e) { bool hasNewData = false; @@ -239,7 +239,7 @@ private void OnDataReceived(object sender, EventArgs e) } } - private void OnErrorOccurred(object sender, Exception ex) + private void OnErrorOccurred(object? sender, Exception ex) { ErrorOccurred?.Invoke(sender, ex); } diff --git a/ThreeByte.LinkLib/ThreeByte.LinkLib.SerialLink/ThreeByte.LinkLib.SerialLink.csproj b/ThreeByte.LinkLib/ThreeByte.LinkLib.SerialLink/ThreeByte.LinkLib.SerialLink.csproj index d5efd72..2ab1895 100644 --- a/ThreeByte.LinkLib/ThreeByte.LinkLib.SerialLink/ThreeByte.LinkLib.SerialLink.csproj +++ b/ThreeByte.LinkLib/ThreeByte.LinkLib.SerialLink/ThreeByte.LinkLib.SerialLink.csproj @@ -1,8 +1,9 @@  - netstandard2.1 + net10.0;netstandard2.0;netstandard2.1 enable + latest diff --git a/ThreeByte.LinkLib/ThreeByte.LinkLib.Shared/ThreeByte.LinkLib.Shared.csproj b/ThreeByte.LinkLib/ThreeByte.LinkLib.Shared/ThreeByte.LinkLib.Shared.csproj index 39de2ea..0ccccae 100644 --- a/ThreeByte.LinkLib/ThreeByte.LinkLib.Shared/ThreeByte.LinkLib.Shared.csproj +++ b/ThreeByte.LinkLib/ThreeByte.LinkLib.Shared/ThreeByte.LinkLib.Shared.csproj @@ -1,8 +1,9 @@  - netstandard2.1 + net10.0;netstandard2.0;netstandard2.1 enable + latest diff --git a/ThreeByte.LinkLib/ThreeByte.LinkLib.TcpLink/AsyncTcpLink.cs b/ThreeByte.LinkLib/ThreeByte.LinkLib.TcpLink/AsyncTcpLink.cs index ea30efc..2cc3780 100644 --- a/ThreeByte.LinkLib/ThreeByte.LinkLib.TcpLink/AsyncTcpLink.cs +++ b/ThreeByte.LinkLib/ThreeByte.LinkLib.TcpLink/AsyncTcpLink.cs @@ -170,7 +170,7 @@ private void SafeClose() ChangeIsConnected(false); } - private void SafeConnect(object state) + private void SafeConnect(object? state) { SafeConnect(); } @@ -325,7 +325,7 @@ private void ReceiveData() private void ReadCallback(IAsyncResult asyncResult) { - byte[] buffer = (byte[])asyncResult.AsyncState ?? Array.Empty(); + byte[] buffer = (byte[]?)asyncResult.AsyncState ?? Array.Empty(); bool hasNewData = false; int bytesRead = 0; diff --git a/ThreeByte.LinkLib/ThreeByte.LinkLib.TcpLink/ThreeByte.LinkLib.TcpLink.csproj b/ThreeByte.LinkLib/ThreeByte.LinkLib.TcpLink/ThreeByte.LinkLib.TcpLink.csproj index 824f710..ec69a40 100644 --- a/ThreeByte.LinkLib/ThreeByte.LinkLib.TcpLink/ThreeByte.LinkLib.TcpLink.csproj +++ b/ThreeByte.LinkLib/ThreeByte.LinkLib.TcpLink/ThreeByte.LinkLib.TcpLink.csproj @@ -1,8 +1,9 @@  - netstandard2.1 + net10.0;netstandard2.0;netstandard2.1 enable + latest diff --git a/ThreeByte.LinkLib/ThreeByte.LinkLib.UdpLink/AsyncUdpLink.cs b/ThreeByte.LinkLib/ThreeByte.LinkLib.UdpLink/AsyncUdpLink.cs index d4dc6ca..58ada62 100644 --- a/ThreeByte.LinkLib/ThreeByte.LinkLib.UdpLink/AsyncUdpLink.cs +++ b/ThreeByte.LinkLib/ThreeByte.LinkLib.UdpLink/AsyncUdpLink.cs @@ -220,7 +220,7 @@ private void ReceiveCallback(IAsyncResult asyncResult) { try { - IPEndPoint remoteEndpoint = new IPEndPoint(IPAddress.Any, _settings.RemotePort); + IPEndPoint? remoteEndpoint = new IPEndPoint(IPAddress.Any, _settings.RemotePort); byte[] bytesRead = _udpClient?.EndReceive(asyncResult, ref remoteEndpoint) ?? Array.Empty(); if (_isEnabled) diff --git a/ThreeByte.LinkLib/ThreeByte.LinkLib.UdpLink/ThreeByte.LinkLib.UdpLink.csproj b/ThreeByte.LinkLib/ThreeByte.LinkLib.UdpLink/ThreeByte.LinkLib.UdpLink.csproj index 824f710..7a9f966 100644 --- a/ThreeByte.LinkLib/ThreeByte.LinkLib.UdpLink/ThreeByte.LinkLib.UdpLink.csproj +++ b/ThreeByte.LinkLib/ThreeByte.LinkLib.UdpLink/ThreeByte.LinkLib.UdpLink.csproj @@ -1,8 +1,9 @@  - netstandard2.1 - enable + net10.0;netstandard2.0;netstandard2.1 + enable + latest From 3338caa3933c0c215bc56f6305434b6ff0957c25 Mon Sep 17 00:00:00 2001 From: Alexander Mushinsky <129445260+amushinskiy@users.noreply.github.com> Date: Wed, 24 Dec 2025 00:38:45 -0800 Subject: [PATCH 2/2] Update ThreeByte.LinkLib/ThreeByte.LinkLib.UdpLink/ThreeByte.LinkLib.UdpLink.csproj Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../ThreeByte.LinkLib.UdpLink.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ThreeByte.LinkLib/ThreeByte.LinkLib.UdpLink/ThreeByte.LinkLib.UdpLink.csproj b/ThreeByte.LinkLib/ThreeByte.LinkLib.UdpLink/ThreeByte.LinkLib.UdpLink.csproj index 7a9f966..9354acf 100644 --- a/ThreeByte.LinkLib/ThreeByte.LinkLib.UdpLink/ThreeByte.LinkLib.UdpLink.csproj +++ b/ThreeByte.LinkLib/ThreeByte.LinkLib.UdpLink/ThreeByte.LinkLib.UdpLink.csproj @@ -1,9 +1,9 @@  - net10.0;netstandard2.0;netstandard2.1 - enable - latest + net10.0;netstandard2.0;netstandard2.1 + enable + latest