Szerző: banditoth You may want to host your. You want to get rid of Console windows, and do not want to start the app manually after the computer is started, or restart it when the application has crashed. This tutorial helps you to make a windows service from your.
NET Core application, especially a. NET Core application.
WindowsServices Make changes in your Program. CreateDefaultBuilder args. ClearProviders ; logging.
UseWindowsService ; This is all of the code change you bináris beállítások bandite to do. Publish your application to a folder Make the following changes in the following dialog by pressing an edit button next to a summary label.
Set the deployment mode toself-contained Click on Publish. Once the publish is done, copy the published files to a specific directory of the computer, or an another computer.
Run the powershell script above, to create a new windows service on the hosting computer. Also keep in mind, if you want to access your web application outside of your local network, you need to forward ports on your router.
NET Core Címkék.