Update settings for tests project so that it will build on linux (#1860)

* Update settings for tests project so that it will build on linux

* Improve unit tests and samples

* Remove no longer required target frameworks for unit tests

* Update ci.yml
This commit is contained in:
Christian
2023-11-01 09:34:18 +01:00
committed by GitHub
parent d22caa7b70
commit 2599b3dfdc
6 changed files with 18 additions and 16 deletions
@@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#pragma warning disable CS0612 // Type or member is obsolete
using System;
using System.Collections.Generic;
using System.Linq;
@@ -37,7 +39,7 @@ namespace MQTTnet.Client
// on the order of called methods from the builder).
// The builder prefers the explicitly set TLS options!
var tlsOptions = _tlsOptions ?? _tcpOptions?.TlsOptions;
if (_tlsParameters != null)
{
if (_tlsParameters?.UseTls == true)