From e854b9bfe6aa1ee331628a2b8b4b08cdf925bb88 Mon Sep 17 00:00:00 2001 From: Morten Nielsen Date: Thu, 16 Jan 2020 22:50:04 -0800 Subject: [PATCH] Added serialport support to .NET Core 2.1+ --- src/NmeaParser/NmeaParser.csproj | 8 ++++++-- src/NmeaParser/SerialPortDevice.Desktop.cs | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/NmeaParser/NmeaParser.csproj b/src/NmeaParser/NmeaParser.csproj index 3dfc483..f5995f8 100644 --- a/src/NmeaParser/NmeaParser.csproj +++ b/src/NmeaParser/NmeaParser.csproj @@ -1,7 +1,7 @@  - netstandard1.4;net451;monoandroid50;monoandroid70;xamarinios10;uap10.0.16299 + netstandard1.4;netcoreapp2.1;net451;monoandroid50;monoandroid70;xamarinios10;uap10.0.16299 true true Debug;Release @@ -66,5 +66,9 @@ - + + + + + diff --git a/src/NmeaParser/SerialPortDevice.Desktop.cs b/src/NmeaParser/SerialPortDevice.Desktop.cs index bad59e3..d1807cb 100644 --- a/src/NmeaParser/SerialPortDevice.Desktop.cs +++ b/src/NmeaParser/SerialPortDevice.Desktop.cs @@ -12,7 +12,7 @@ // * limitations under the License. // ****************************************************************************** -#if NETFX +#if NETFX || NETCOREAPP using System; using System.Collections.Generic; using System.Linq;