Skip to content

Commit 22af0e0

Browse files
committed
upgrade to .Net8.0
1 parent cae3931 commit 22af0e0

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

ExampleClient/ExampleClient.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="MQTTnet.Extensions.ManagedClient" Version="4.1.0.247" />
9+
<PackageReference Include="MQTTnet.Extensions.ManagedClient" Version="4.3.2.930" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

ExampleClient/Program.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ private static async System.Threading.Tasks.Task Main(string[] args)
1717
.WithAutoReconnectDelay(TimeSpan.FromSeconds(5))
1818
.WithClientOptions(new MqttClientOptionsBuilder()
1919
.WithClientId($"Client{rnd.Next(0, 1000)}")
20-
.WithWebSocketServer("localhost:50482/mqtt")
20+
.WithWebSocketServer( cfg=> cfg.WithUri("localhost:50482/mqtt"))
2121
.Build())
2222
.Build();
2323

@@ -38,7 +38,7 @@ private static async System.Threading.Tasks.Task Main(string[] args)
3838

3939
mqttClient.ApplicationMessageReceivedAsync += e =>
4040
{
41-
Console.WriteLine($"Message from {e.ClientId}: {e.ApplicationMessage.Payload.Length} bytes.");
41+
Console.WriteLine($"Message from {e.ClientId}: {e.ApplicationMessage.PayloadSegment.Count } bytes.");
4242
return System.Threading.Tasks.Task.CompletedTask;
4343
};
4444

ExampleServer/ExampleServer.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This library has not been tested against a very high-load environment yet. Ensu
3232

3333
## Supported frameworks
3434

35-
* .NET Standard 2.0+
35+
3636
* .NET Core 3.1+
3737

3838
## Supported MQTT versions

Source/MQTTnet.AspNetCore.Routing.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<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>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
66
<Description>
77
This is a support library to integrate AttributeRouting into MQTTnet with AspNetCore.
@@ -40,7 +40,7 @@
4040
</ItemGroup>
4141

4242
<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" />
4545
</ItemGroup>
4646
</Project>

Tests/MQTTnet.AspNetCore.Routing.Tests/MQTTnet.AspNetCore.Routing.Tests.csproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0</TargetFrameworks>
55

66
<IsPackable>false</IsPackable>
77
<AssemblyName>MQTTnet.AspNetCore.Routing.Tests</AssemblyName>
@@ -10,9 +10,9 @@
1010
</PropertyGroup>
1111

1212
<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" />
1616
</ItemGroup>
1717
<ItemGroup>
1818
<ProjectReference Include="..\..\Source\MQTTnet.AspNetCore.Routing.csproj" />

0 commit comments

Comments
 (0)