File tree 6 files changed +13
-13
lines changed
Tests/MQTTnet.AspNetCore.Routing.Tests
6 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<OutputType >Exe</OutputType >
5
- <TargetFramework >net6 .0</TargetFramework >
5
+ <TargetFramework >net8 .0</TargetFramework >
6
6
</PropertyGroup >
7
7
8
8
<ItemGroup >
9
- <PackageReference Include =" MQTTnet.Extensions.ManagedClient" Version =" 4.1.0.247 " />
9
+ <PackageReference Include =" MQTTnet.Extensions.ManagedClient" Version =" 4.3.2.930 " />
10
10
</ItemGroup >
11
11
12
12
<ItemGroup >
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ private static async System.Threading.Tasks.Task Main(string[] args)
17
17
. WithAutoReconnectDelay ( TimeSpan . FromSeconds ( 5 ) )
18
18
. WithClientOptions ( new MqttClientOptionsBuilder ( )
19
19
. WithClientId ( $ "Client{ rnd . Next ( 0 , 1000 ) } ")
20
- . WithWebSocketServer ( "localhost:50482/mqtt" )
20
+ . WithWebSocketServer ( cfg => cfg . WithUri ( "localhost:50482/mqtt" ) )
21
21
. Build ( ) )
22
22
. Build ( ) ;
23
23
@@ -38,7 +38,7 @@ private static async System.Threading.Tasks.Task Main(string[] args)
38
38
39
39
mqttClient . ApplicationMessageReceivedAsync += e =>
40
40
{
41
- Console . WriteLine ( $ "Message from { e . ClientId } : { e . ApplicationMessage . Payload . Length } bytes.") ;
41
+ Console . WriteLine ( $ "Message from { e . ClientId } : { e . ApplicationMessage . PayloadSegment . Count } bytes.") ;
42
42
return System . Threading . Tasks . Task . CompletedTask ;
43
43
} ;
44
44
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk.Web" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >net6 .0</TargetFramework >
4
+ <TargetFramework >net8 .0</TargetFramework >
5
5
</PropertyGroup >
6
6
7
7
<ItemGroup >
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ This library has not been tested against a very high-load environment yet. Ensu
32
32
33
33
## Supported frameworks
34
34
35
- * .NET Standard 2.0+
35
+
36
36
* .NET Core 3.1+
37
37
38
38
## Supported MQTT versions
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFrameworks >netcoreapp3.1;net5.0;net6.0;net7.0</TargetFrameworks >
4
+ <TargetFrameworks >netcoreapp3.1;net5.0;net6.0;net7.0;net8.0 </TargetFrameworks >
5
5
<GeneratePackageOnBuild >true</GeneratePackageOnBuild >
6
6
<Description >
7
7
This is a support library to integrate AttributeRouting into MQTTnet with AspNetCore.
40
40
</ItemGroup >
41
41
42
42
<ItemGroup >
43
- <PackageReference Include =" MQTTnet" Version =" 4.1.0.247 " />
44
- <PackageReference Include =" MQTTnet.AspNetCore" Version =" 4.1.0.247 " />
43
+ <PackageReference Include =" MQTTnet" Version =" 4.3.2.930 " />
44
+ <PackageReference Include =" MQTTnet.AspNetCore" Version =" 4.3.2.930 " />
45
45
</ItemGroup >
46
46
</Project >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFrameworks >net6 .0</TargetFrameworks >
4
+ <TargetFrameworks >net8 .0</TargetFrameworks >
5
5
6
6
<IsPackable >false</IsPackable >
7
7
<AssemblyName >MQTTnet.AspNetCore.Routing.Tests</AssemblyName >
10
10
</PropertyGroup >
11
11
12
12
<ItemGroup >
13
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.3.1 " />
14
- <PackageReference Include =" MSTest.TestAdapter" Version =" 2.2.10 " />
15
- <PackageReference Include =" MSTest.TestFramework" Version =" 2.2.10 " />
13
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.8.0 " />
14
+ <PackageReference Include =" MSTest.TestAdapter" Version =" 3.1.1 " />
15
+ <PackageReference Include =" MSTest.TestFramework" Version =" 3.1.1 " />
16
16
</ItemGroup >
17
17
<ItemGroup >
18
18
<ProjectReference Include =" ..\..\Source\MQTTnet.AspNetCore.Routing.csproj" />
You can’t perform that action at this time.
0 commit comments