Skip to content

Commit 274e88c

Browse files
authored
Merge pull request #70 from ChrisPulman/CP_FixSerialisation
Fix Serialisation
2 parents f7cb1b8 + a2b1b65 commit 274e88c

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

Version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "1.1.1",
3+
"version": "1.2",
44
"publicReleaseRefSpec": [
55
"^refs/heads/master$",
66
"^refs/heads/main$"

src/ABPlcRx/ABPlcRx.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net6.0;net7.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net8.0;net9.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
</PropertyGroup>

src/ABPlcRx/Core/PlcTagException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace ABPlcRx;
1212
/// Initializes a new instance of the <see cref="PlcTagException"/> class.
1313
/// </remarks>
1414
/// <param name="result">The result.</param>
15-
[System.Serializable]
15+
[Serializable]
1616
#pragma warning disable RCS1194 // Implement exception constructors.
1717
public class PlcTagException(PlcTagResult result) : Exception("Error executing PlcTag operation.")
1818
#pragma warning restore RCS1194 // Implement exception constructors.

src/ABPlcRx/Core/PlcTagResult.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ namespace ABPlcRx;
66
/// <summary>
77
/// Plc Tag Result.
88
/// </summary>
9+
[Serializable]
910
public class PlcTagResult
1011
{
1112
internal PlcTagResult(IPlcTag tag, DateTime timestamp, long executionTime, int statusCode)

0 commit comments

Comments
 (0)