A simple way to run a dotnet class library is to use the dotnet run command.
The problem with the dotnet run command is that debugging is not possible, because the process is not attached. That’s why the best way to run a class library is to use the UI and create a new instance in debug mode. This opens up a new instance AND allows for debugging!
Happy coding!