Skip to content

dotnetup runtime install windowsdesktop should also install the core runtime #52888

@nagilson

Description

@nagilson

Summary

When installing the Windows Desktop runtime via dotnetup runtime install windowsdesktop@<version>, the core .NET runtime should also be automatically installed, since the Windows Desktop runtime archive does not include it.

Background

From PR #52649 discussion: #52649 (comment)

The Windows Desktop runtime zip does not include the core runtime within it, unlike the ASP.NET Core runtime zip which bundles the core runtime. This means that applications using the Windows Desktop runtime will fail to run if only the Windows Desktop runtime is installed without the core runtime.

Testing confirmed that a Windows Desktop app does not work without the core runtime installed.

Proposed Solution

When dotnetup runtime install windowsdesktop@<version> is executed, dotnetup should:

  1. Install the Windows Desktop runtime
  2. Automatically install the matching core .NET runtime (if not already present)

Additional Investigation

While the ASP.NET Core zip currently bundles the core runtime, it's worth verifying whether older versions of the ASP.NET Core zip also include the core runtime. If there are any ASP.NET Core versions where the core runtime is not bundled, we may need to handle those cases as well.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    dotnetupWork items around the proposed `dotnetup` bootstrapper/toolchain management tool and library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions