Atlas-LiftTech / MQTTnet.AspNetCore.AttributeRouting

Easily create Controllers and Actions to process incoming MQTT messages using a familiar paradigm and MQTTnet
MIT License
42 stars 18 forks source link

Unable to use AttributeRouting in .NET 5.0 project #5

Closed Octoate closed 3 years ago

Octoate commented 3 years ago

Describe the bug

If you create a simple .NET 5.0 ASP.NET project it is not possible compile the project, because it is unable to load the assembly. The compilation error occurs when adding .WithAttributeRouting() to the options. Switching the project to .NETCore 3.1 enables it to compile.

To Reproduce

Just use the example project with .NET 5.0 as a target framework.

Expected behavior

A clean compilation :-).

Additional context / logging

It might be just a NuGet package setting. Please verify that you added .NET 5.0 was added to the dependencies since .NET Core is not enough to support it.

It would be great if you can publish a new version with .NET 5.0 support of your library.

Octoate commented 3 years ago

Already fixed with the update 3.0.15 of the MQTTnet packages :-).