Visitar URL original
Windows version of pwsh not compatible with .NET 5.0 preview 3 · Issue #12264 · PowerShell/PowerShell · GitHub
Skip to content

Windows version of pwsh not compatible with .NET 5.0 preview 3 #12264

Closed

Description

@mthalman

Steps to reproduce

  1. Install current (as of today) .NET 5.0 preview 3 build: https://dotnetcli.azureedge.net/dotnet/Runtime/5.0.0-preview.3.20169.1/dotnet-runtime-5.0.0-preview.3.20169.1-win-x64.exe

  2. Install PowerShell

$powershell_version = '7.1.0-preview.1'; `
Invoke-WebRequest -OutFile PowerShell.Windows.x64.$powershell_version.nupkg https://pwshtool.blob.core.windows.net/tool/$powershell_version/PowerShell.Windows.x64.$powershell_version.nupkg;
\dotnet\dotnet tool install --add-source . --tool-path \powershell --version $powershell_version PowerShell.Windows.x64;
  1. Run PowerShell
.\powershell\pwsh.exe

Expected behavior


Actual behavior

It was not possible to find any compatible framework version

The framework 'Microsoft.NETCore.App', version '5.0.0-preview.3.20201.7' was not found.

Environment data


This behavior doesn't occur for the Linux version of pwsh.

cc Aditya Patwardhan (@adityapatwardhan)

Activity

  1. added
    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a
    on Apr 6, 2020
  2. iSazonov commented on Apr 6, 2020

    @iSazonov
    Collaborator

    We will move to .Net 5 Preview3 after it will be public preview.

  3. mthalman commented on Apr 6, 2020

    @mthalman
    Author

    This should be using the automatic roll forward versioning. For PowerShell 7.0, there was not an issue when using .NET 5.0 preview 2 before it had been released. This is blocking us from producing the .NET 5.0 preview Docker images that have PowerShell pre-installed.

  4. mthalman commented on Apr 6, 2020

    @mthalman
    Author

    Also, the fact that Linux works but Windows does not seems to imply some sort of configuration difference there.

  5. iSazonov commented on Apr 6, 2020

    @iSazonov
    Collaborator

    I don't remember that we add anything to discover .Net. It looks like .Net issue.

    We could move to .Net 5 Preview2...

    /cc Steve Lee (@SteveL-MSFT) for information.

  6. mthalman commented on Apr 6, 2020

    @mthalman
    Author

    .NET is doing the discovery, not PowerShell. But that doesn't mean PowerShell isn't the cause of it. If PowerShell is configured to not allow roll forward, then .NET will fail if that specific version doesn't exist.

  7. iSazonov commented on Apr 7, 2020

    @iSazonov
    Collaborator

    Matt Thalman (@mthalman) You could look global.json and build.psm1 (search key "fxdependent") and review configuration options we use.
    Last PR in the area #12140

  8. iSazonov commented on Apr 7, 2020

    @iSazonov
    Collaborator

    Matt Thalman (@mthalman) If time is critical I could pull new PR to move 5.0 Preview2 and then you could download artifacts from the PR to make your tests.

    Update: We already have #12250

  9. mthalman commented on Apr 7, 2020

    @mthalman
    Author

    Found the root cause. This is an issue with the framework version dependencies packaged within the .NET SDK. Nothing to do with PowerShell. Closing.

  10. iSazonov commented on Apr 8, 2020

    @iSazonov
    Collaborator

    Matt Thalman (@mthalman) We moved to 5.0 Preview2. It is not public but you can use actifacts from #12250 if you need.

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-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-ExternalThe issue is caused by external component(s).WG-Maintainers-Buildspecific to affecting the build

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions