I have a ASP .NET Core 3.1 application which is hosted as a windows service using IHostBuilder.UseWindowsService
call. I am preparing a setup project using Visual Studio Installer Projects Extensions. The project is created as Web Setup project type so that the installer dialog already presents to the user selection of web page and application pool on IIS.
The problem I'm facing is that the assemblies are successfully installed in given folder on IIS, but the ApplicationService.deps.json
is not installed. Without this file the application does not start successfully. As far as I have checked the file is created as part of the build in binx64Release
etcoreapp3.1
but is apparently not included by the Setup project.
I've played around also with Setup project's property PublishProfilePath
by specify the profile that I generated when manually trying to publish from Visual Studio to IIS:
However, this produces even stranger results. The application is deployed to the IIS already when I build the Setup project! Then when check the newly created msi, it's size is really small and in fact does not install anything (completes successfully though).
Any help would be highly appreciated.
question from:
https://stackoverflow.com/questions/65901077/installing-asp-net-core-service-to-iis-using-visual-studio-installer-projects 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…