Skip to content

Microsoft.PowerShell.SDK version 6.1.0-preview.4 fails at InitialSessionState.CreateDefault() #7339

Closed

Description

I'm unable to use preview.4 of the SDK with my test project. preview.3 worked fine. The test project targets .net core 2.1.

Steps to reproduce

  1. Clone https://github.com/jherby2k/AudioWorks.git.
  2. Run the tests in the AudioWorks.Commands.Tests project. All should pass.
  3. Change the project to reference Microsoft.PowerShell.SDK version 6.1.0-preview.4 (from preview.3)
  4. Run the tests again. Most will fail.

Expected behavior

all tests pass

Actual behavior

One or more errors occurred. (Cannot load PowerShell snap-in Microsoft.PowerShell.Diagnostics because of the following error: Could not load file or assembly '..\Source\Repos\AudioWorks\AudioWorks\tests\AudioWorks.Commands.Tests\bin\Release-Windows\netcoreapp2.1\Microsoft.PowerShell.Commands'. The system cannot find the file specified.

Activity

  1. SteveL-MSFT commented on Jul 24, 2018

    @SteveL-MSFT
    Member
  2. adityapatwardhan commented on Jul 24, 2018

    @adityapatwardhan
    Member

    Jeremy Herbison (@jherby2k) I believe this is on Windows? Which Windows version is it?

  3. jherby2k commented on Jul 24, 2018

    @jherby2k
    Author
  4. SteveL-MSFT commented on Jul 31, 2018

    @SteveL-MSFT
    Member

    It appears there's a few problems. In microsoft.powershell.sdk.nuspec, the dependency on Microsoft.PowerShell.Commands.Diagnostics is missing and was there in Preview.3. Also, Preview.4 added dependency on Microsoft.PowerShell.MarkdownRender which needs to be added as a dependency and published

  5. jherby2k commented on Aug 1, 2018

    @jherby2k
    Author

    Probably best to unpublish it until at least MarkdownRender is available, no?

  6. adityapatwardhan commented on Aug 1, 2018

    @adityapatwardhan
    Member

    Jeremy Herbison (@jherby2k) Thank you for reporting this issue. We will be fixing and re-publishing the SDK soon.

  7. adityapatwardhan commented on Aug 1, 2018

    @adityapatwardhan
    Member

    Jeremy Herbison (@jherby2k) new packages published. Can you give them a try?

  8. jherby2k commented on Aug 2, 2018

    @jherby2k
    Author

    Thanks. Working for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Resolution-FixedWG-Maintainers-Build

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions