'How to add connected services on a class library?

By default, a Class Library project is not set up to add a connected service.

enter image description here

Is it possible to move our connected services from a Blazor application to a class library? How?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source