Added serialport support to .NET Core 2.1+

This commit is contained in:
Morten Nielsen 2020-01-16 22:50:04 -08:00
parent 238f1a319f
commit e854b9bfe6
2 changed files with 7 additions and 3 deletions

View file

@ -1,7 +1,7 @@
<Project Sdk="MSBuild.Sdk.Extras/2.0.54">
<PropertyGroup>
<TargetFrameworks>netstandard1.4;net451;monoandroid50;monoandroid70;xamarinios10;uap10.0.16299</TargetFrameworks>
<TargetFrameworks>netstandard1.4;netcoreapp2.1;net451;monoandroid50;monoandroid70;xamarinios10;uap10.0.16299</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Configurations>Debug;Release</Configurations>
@ -66,5 +66,9 @@
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-19270-01" PrivateAssets="All" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1'">
<PackageReference Include="System.IO.Ports" Version="4.7.0" PrivateAssets="All" />
</ItemGroup>
</Project>

View file

@ -12,7 +12,7 @@
// * limitations under the License.
// ******************************************************************************
#if NETFX
#if NETFX || NETCOREAPP
using System;
using System.Collections.Generic;
using System.Linq;