mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-17 01:33:03 +08:00
Add .NET Core 3.1 target that uses ASP.NET Core framework reference instead of NuGet package references
33 lines
1.1 KiB
XML
33 lines
1.1 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFrameworks>netstandard2.0;netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
|
|
<Product />
|
|
<Company />
|
|
<Authors />
|
|
<PackageId />
|
|
<LangVersion>7.2</LangVersion>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
|
<DefineConstants>RELEASE;NETSTANDARD2_0</DefineConstants>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">
|
|
<FrameworkReference Include="Microsoft.AspNetCore.App" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition=" '$(TargetFramework)' != 'netcoreapp3.1' ">
|
|
<PackageReference Include="Microsoft.AspNetCore.Connections.Abstractions" Version="2.1.3" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Http.Connections" Version="1.0.3" />
|
|
<PackageReference Include="Microsoft.AspNetCore.WebSockets" Version="2.1.1" />
|
|
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="2.1.1" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\MQTTnet\MQTTnet.csproj" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|