Skip to content

Commit

Permalink
(#109) Build: add .NET 5 support, update language version
Browse files Browse the repository at this point in the history
Explicit .NET 5 build is required to support TcpClient connection
cancellation.
  • Loading branch information
ForNeVeR committed Sep 21, 2021
1 parent 6b6b367 commit 3cb2ddb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions SharpXMPP.Console/SharpXMPP.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<LangVersion>9.0</LangVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions SharpXMPP.NUnit/SharpXMPP.NUnit.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net48;netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net48;netcoreapp2.1;netcoreapp3.1;net5.0</TargetFrameworks>
<DebugType>portable</DebugType>
<AssemblyName>SharpXMPP.NUnit</AssemblyName>
<PackageId>SharpXMPP.NUnit</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<LangVersion>8.0</LangVersion>
<LangVersion>9.0</LangVersion>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions SharpXMPP.Shared/SharpXMPP.Shared.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard1.6;net451</TargetFrameworks>
<TargetFrameworks>netstandard1.6;net451;net5.0</TargetFrameworks>
<AssemblyName>SharpXMPP.Shared</AssemblyName>
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard1.6' ">1.6.1</NetStandardImplicitPackageVersion>
<LangVersion>7.2</LangVersion>
<LangVersion>9.0</LangVersion>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion SharpXMPP.WebSocket/SharpXMPP.WebSocket.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TargetFrameworks>netstandard1.6;net451</TargetFrameworks>
<AssemblyName>SharpXMPP.WebSocket</AssemblyName>
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard1.6' ">1.6.1</NetStandardImplicitPackageVersion>
<LangVersion>7.2</LangVersion>
<LangVersion>9.0</LangVersion>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit 3cb2ddb

Please sign in to comment.