Skip to content

7.2.0 win-fxdependent release packages do not include pwsh.exe #16448

Closed

Description

@ajansveld

Prerequisites

Steps to reproduce

  • Install the .NET Desktop Runtime 6.0.0
  • Download and expand PowerShell-7.2.0-win-fxdependent.zip or PowerShell-7.2.0-win-fxdependentWinDesktop.zip
  • Run pwsh.exe

Expected behavior

PowerShell 7.2.0 starts (this worked in 7.2.0 RC1).

Actual behavior

Executable is not present, have to run 'dotnet pwsh.dll'.

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.0
PSEdition                      Core
GitCommitId                    7.2.0
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

No response

Activity

  1. added
    Needs-Triage
    on Nov 11, 2021
  2. added
    Issue-Question
    on Nov 11, 2021
  3. daxian-dbw commented on Nov 12, 2021

    @daxian-dbw
    Member

    Aditya Patwardhan (@adityapatwardhan) Is this intentional? I know some work was done to remove the executable from global tool.

  4. daxian-dbw commented on Nov 15, 2021

    @daxian-dbw
    Member

    According to Aditya Patwardhan (@adityapatwardhan), this is intentional because the previously shipped pwsh.exe is platform specific, while a FxDependent package shouldn't be platform specific.

  5. added
    Resolution-Answered
    and removed
    Needs-Triage
    on Nov 15, 2021
  6. adityapatwardhan commented on Nov 15, 2021

    @adityapatwardhan
    Member

    Yes, that is correct. The executable is specific to the platform which it is built on. More information here: https://docs.microsoft.com/en-us/dotnet/core/deploying/#publish-framework-dependent

    The guidance is to use dotnet pwsh.dll to use the framework dependent package.

  7. ajansveld commented on Nov 15, 2021

    @ajansveld
    Author

    That sounds like a breaking change from the RC1 release. Where was this documented?

    It is my understanding that a framework-dependent app can still produce a platform-specific executable. The fact that the package is called PowerShell-7.2.0-win-fxdependent.zip certainly leads people to believe that this is meant for Windows only. I'd argue that if a truly cross-platform package is needed it should be published separately under a different name.

    Since PowerShell-7.2.0-win-fxdependentWinDesktop.zip will never be cross-platform since it depends on WinForms and WPF, can we please have pwsh.exe back?

  8. daxian-dbw commented on Nov 15, 2021

    @daxian-dbw
    Member

    -win- indicates it's for Windows, but doesn't indicate the process architecture it's targeting. For example, you should be able to use the FxDependent package on x64, x86, ARM64, or ARM32 windows. A platform specific executable won't work in that case.

  9. ghost closed this as completedon Nov 17, 2021
  10. ajansveld commented on Dec 15, 2021

    @ajansveld
    Author

    This has been fixed (for different reasons) in #16535.

  11. added
    Resolution-Fixed
    and removed
    Resolution-Answered
    on Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-QuestionResolution-Fixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions