You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
7.2.0 win-fxdependent release packages do not include pwsh.exe #16448
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
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.
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?
-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.
Activity
daxian-dbw commentedon Nov 12, 2021
Aditya Patwardhan (@adityapatwardhan) Is this intentional? I know some work was done to remove the executable from global tool.
daxian-dbw commentedon Nov 15, 2021
According to Aditya Patwardhan (@adityapatwardhan), this is intentional because the previously shipped
pwsh.exeis platform specific, while a FxDependent package shouldn't be platform specific.adityapatwardhan commentedon Nov 15, 2021
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.dllto use the framework dependent package.ajansveld commentedon Nov 15, 2021
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?
daxian-dbw commentedon Nov 15, 2021
-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.ajansveld commentedon Dec 15, 2021
This has been fixed (for different reasons) in #16535.