AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Web Package (single-file) deployments aren't supported

Open davidsk opened this issue 5 years ago • 4 comments

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.

davidsk avatar Sep 10 '21 07:09 davidsk

Hello @davidsk ... See :point_right: https://github.com/dotnet/runtime/issues/36590

guardrex avatar Sep 10 '21 11:09 guardrex

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

guardrex avatar Sep 10 '21 11:09 guardrex

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?

davidsk avatar Sep 10 '21 13:09 davidsk

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

guardrex avatar Sep 10 '21 13:09 guardrex