I have created an ASP.NET Core 3.0 project and start it as a Windows service with your library. When I choose the conventional publishing in the Windows service project, it creates nearly 500 files and it can be started with this library and it serves the requests using the proper URLs.
However, when I choose the single exe as the publishing form, I get 1 file that is 175+ MB in size:
I have created an ASP.NET Core 3.0 project and start it as a Windows service with your library. When I choose the conventional publishing in the Windows service project, it creates nearly 500 files and it can be started with this library and it serves the requests using the proper URLs.
However, when I choose the single exe as the publishing form, I get 1 file that is 175+ MB in size:
When I simply start it, I can see the following:
Unfortunately, I can't see any
OnStart
,OnStop
orOnError
message in the log file.Can I somehow use the single exe format and run it as a service?