Test project: Enable netcore3.1 testing, switch win64 Snap7 and use custom port.

- Add netcoreapp3.1 target framework, allowing this to run on linux and macos as well.
- Switch windows snap7 DLL to 64bit version 1.4.2. This also improves UnitTest stability (reduces false positives) on the CI (including appveyor)
- Changing the port used for S7NetTests when communicating with Snap7 to a value > 1000 allows tests to run on Linux without elevated privileges.
This commit is contained in:
Serge Camille
2020-09-13 10:01:38 +02:00
parent 12a2e3c0b1
commit 9198fc1686
7 changed files with 34 additions and 17 deletions

View File

@@ -6,10 +6,12 @@ using Microsoft.VisualStudio.TestTools.UnitTesting;
using S7.Net;
using S7.Net.UnitTest.Helpers;
using S7.Net.UnitTest;
using System.ServiceProcess;
using S7.Net.Types;
using S7.UnitTest.Helpers;
using System.Threading.Tasks;
#if NETFRAMEWORK
using System.ServiceProcess;
#endif
using System.Threading;
#endregion