Older .NET framework Windows service applications could not be executed in any other way other than as a registered service on a Windows machine but I've noticed that .NET worker service applications even if implementing a Windows service (UseWindowsService) and being registered as a service can still be started as standard console applications by double clicking on them. Is there a way to prevent this from happening?
This is what older .NET framework Windows service applications displayed at any attempt to start them not as a Windows service.