I would like to create an installer for my self-hosted service written in .NET Core 3.1. I'm using Visual Studio 2019 so I had to install VisualStudioClient.MicrosoftVisualStudio2017InstallerProjects and this allowed me to create Setup Project.
So, everything now works ok, except that I can't run any code during the installation! In standard .NET Framework there was Installer class that enabled me to inject some functions, like "register and start service". But .NET Core has nothing like that!
So how can I run extra C# code after the installation is finished?