diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..07b1ce0
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,34 @@
+name: Build
+
+on:
+ push:
+ branches: [master, xvtsharp/net10]
+ pull_request:
+
+permissions:
+ contents: read
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v5
+ with:
+ path: idmr-platform
+
+ - uses: actions/checkout@v5
+ with:
+ repository: andy83/LdmrCommon
+ ref: db9b9d7af6d7946ba5d9089245ec33504bd0a586
+ path: idmr-common
+
+ - uses: actions/setup-dotnet@v5
+ with:
+ dotnet-version: 10.0.x
+
+ - name: Restore
+ run: dotnet restore idmr-platform/Platform.csproj
+
+ - name: Build
+ run: dotnet build idmr-platform/Platform.csproj --no-restore --configuration Release
diff --git a/EncodingSupport.cs b/EncodingSupport.cs
new file mode 100644
index 0000000..9a8601c
--- /dev/null
+++ b/EncodingSupport.cs
@@ -0,0 +1,14 @@
+using System.Runtime.CompilerServices;
+using System.Text;
+
+namespace Idmr.Platform
+{
+ internal static class EncodingSupport
+ {
+ [ModuleInitializer]
+ internal static void RegisterCodePages()
+ {
+ Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
+ }
+ }
+}
diff --git a/Platform.csproj b/Platform.csproj
index dfd6f1a..53e0020 100644
--- a/Platform.csproj
+++ b/Platform.csproj
@@ -1,153 +1,24 @@
-
-
+
- Debug
- AnyCPU
- 9.0.21022
- 2.0
- {ABE8BD2A-CFA2-4912-B635-AC7C52F81434}
- Library
- Properties
- Idmr.Platform
+ net10.0
Idmr.Platform
- v4.8
- 512
-
-
-
-
- 3.5
-
-
-
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
- false
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
- bin\Release\Idmr.Platform.XML
- false
+ Idmr.Platform
+ false
+ true
+ disable
+ disable
+
+
+ false
+ false
+ false
+ false
+ $(NoWarn);CS0419;CS1591
+
+ ../idmr-common/Common.csproj
+
-
- False
- ..\..\..\Libraries\Idmr.Common.dll
-
-
-
- 3.5
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PreserveNewest
-
-
- PreserveNewest
-
+
-
-
-
- copy /y "$(TargetPath)" "C:\Users\Me\Documents\Visual Studio 2008\Libraries\"
-if $(ConfigurationName) == Release copy /y "$(TargetDir)$(TargetName).xml" "C:\Users\Me\Documents\Visual Studio 2008\Libraries\"
-
-
\ No newline at end of file
+
diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs
index 575f424..d85b6bc 100644
--- a/Properties/AssemblyInfo.cs
+++ b/Properties/AssemblyInfo.cs
@@ -20,6 +20,6 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
-[assembly: AssemblyVersion("7.4.1.*")]
+[assembly: AssemblyVersion("7.4.1.0")]
[assembly: AssemblyFileVersion("7.4.1.0")]
-[assembly: AssemblyInformationalVersion("7.4 final")]
\ No newline at end of file
+[assembly: AssemblyInformationalVersion("7.4 final")]
diff --git a/Tie/MessageCollection.cs b/Tie/MessageCollection.cs
index bf4422f..a5e9c6e 100644
--- a/Tie/MessageCollection.cs
+++ b/Tie/MessageCollection.cs
@@ -18,7 +18,6 @@
using System;
using System.Collections.Generic;
-using System.Windows.Forms;
namespace Idmr.Platform.Tie
{
@@ -36,12 +35,11 @@ public MessageCollection()
/// Creates a new Collection with multiple initial Messages.
/// Number of Messages to start with.
/// is less than 0.
- /// Exceeding will result in a warning and the excess ignored.
+ /// Exceeding trims the excess.
public MessageCollection(int quantity) : this()
{
if (quantity > _itemLimit)
{
- MessageBox.Show($"Maximum quantity ({_itemLimit}) exceeded, trimming excess.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
quantity = _itemLimit;
}
if (quantity < 0) throw new ArgumentOutOfRangeException("quantity", "Invalid quantity, must be 0-" + _itemLimit);
@@ -132,4 +130,4 @@ public override void SetCount(int value, bool allowTruncate)
else while (Count < value) Add();
}
}
-}
\ No newline at end of file
+}
diff --git a/Xvt/MessageCollection.cs b/Xvt/MessageCollection.cs
index 36afe59..bb10576 100644
--- a/Xvt/MessageCollection.cs
+++ b/Xvt/MessageCollection.cs
@@ -18,7 +18,6 @@
using System;
using System.Collections.Generic;
-using System.Windows.Forms;
namespace Idmr.Platform.Xvt
{
@@ -36,12 +35,11 @@ public MessageCollection()
/// Creates a new Collection with multiple initial Messages.
/// Number of Messages to start with.
/// is less than 0.
- /// Exceeding will result in a warning and the excess ignored.
+ /// Exceeding trims the excess.
public MessageCollection(int quantity) : this()
{
if (quantity > _itemLimit)
{
- MessageBox.Show($"Maximum quantity ({_itemLimit}) exceeded, trimming excess.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
quantity = _itemLimit;
}
if (quantity < 0) throw new ArgumentOutOfRangeException("quantity", "Invalid quantity, must be 0-" + _itemLimit);
@@ -131,4 +129,4 @@ public override void SetCount(int value, bool allowTruncate)
else while (Count < value) Add();
}
}
-}
\ No newline at end of file
+}