Browse Source

added netcore 2.1 build

release/3.x.x
JanEggers 5 years ago
parent
commit
aee10ba6fa
3 changed files with 6 additions and 2 deletions
  1. +4
    -0
      Source/MQTTnet.AspnetCore/Client/Tcp/SocketSender.cs
  2. +1
    -1
      Source/MQTTnet.AspnetCore/MQTTnet.AspNetCore.csproj
  3. +1
    -1
      Tests/MQTTnet.Benchmarks/MQTTnet.Benchmarks.csproj

+ 4
- 0
Source/MQTTnet.AspnetCore/Client/Tcp/SocketSender.cs View File

@@ -5,6 +5,10 @@ using System.Diagnostics;
using System.IO.Pipelines; using System.IO.Pipelines;
using System.Net.Sockets; using System.Net.Sockets;


#if NETCOREAPP2_1
using System.Runtime.InteropServices;
#endif

namespace MQTTnet.AspNetCore.Client.Tcp namespace MQTTnet.AspNetCore.Client.Tcp
{ {
public class SocketSender public class SocketSender


+ 1
- 1
Source/MQTTnet.AspnetCore/MQTTnet.AspNetCore.csproj View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">


<PropertyGroup> <PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFrameworks>netstandard2.0;netcoreapp2.1</TargetFrameworks>
<Product /> <Product />
<Company /> <Company />
<Authors /> <Authors />


+ 1
- 1
Tests/MQTTnet.Benchmarks/MQTTnet.Benchmarks.csproj View File

@@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<DebugType>Full</DebugType> <DebugType>Full</DebugType>
<TargetFramework Condition=" '$(OS)' == 'Windows_NT' ">net461</TargetFramework>
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">net461;netcoreapp2.1</TargetFrameworks>
<TargetFramework Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.1</TargetFramework> <TargetFramework Condition=" '$(OS)' != 'Windows_NT' ">netcoreapp2.1</TargetFramework>
<LangVersion>7.2</LangVersion> <LangVersion>7.2</LangVersion>
</PropertyGroup> </PropertyGroup>


Loading…
Cancel
Save