Web Package (single-file) deployments aren't supported
In the Differences between in-process and out-of-process hosting section, it stipulates that:
Web Package (single-file) deployments aren't supported
Is there any more information available as to why this isn't supported?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: d52491d2-5493-260a-41cf-f6f8732738c1
- Version Independent ID: bc7f1ef8-0ccc-1233-a4eb-d9dc26ac9529
- Content: In-process hosting with IIS and ASP.NET Core
- Content Source: aspnetcore/host-and-deploy/iis/in-process-hosting.md
- Product: aspnet-core
- Technology: aspnetcore-hostdeploy
- GitHub Login: @Rick-Anderson
- Microsoft Alias: riande
Hello @davidsk ... See :point_right: https://github.com/dotnet/runtime/issues/36590
Actually, out-of-process seems to be supported.
https://github.com/dotnet/runtime/issues/36590#issuecomment-631913654
Ah! Nevermind ... I see that that the text that you're referring to pertains to differences for in-proc, so the statement is accurate.
Looks like there is some further detail in there ...
Loading single-file apps out-of-proc by IIS should be supported. However, loading single-file apps in-proc is not planned for .net 5.
In a single-file app, since host-components (hostfxr. hostpolicy) don't exist as real files on disk, in-process loading of such apps require a new build configuration. That is:
- ASP.NET would need to produce a unmanaged .dll that is a combination of the IIS module and the single file host.
- SDK would need to allow customization of the single file host to use.
https://github.com/dotnet/runtime/issues/36590#issuecomment-631870275
So, the term package here is perhaps overloaded; I read the term web package meaning WebDeploy packages. I assumed there was some issue between webdeploy and the ASP.Net Core Module or similar, but perhaps not. Can someone confirm?
WebDeploy is fine ... for example, see ...
- https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/visual-studio-publish-profiles?view=aspnetcore-5.0#publish-profiles
- https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/visual-studio-publish-profiles?view=aspnetcore-5.0#publish-to-an-msdeploy-endpoint-from-the-command-line