question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PowerShell SDK 6.1.2 won't install in PSCore 6.1.2

See original GitHub issue

I’m not sure what I’m missing here. I can find the package but won’t install.

I use the send email to Owner but never got a response back. 😦

Steps to reproduce

  1. Find the package
PS [21] > find-package -Name Microsoft.PowerShell.SDK

Name                           Version          Source           Summary
----                           -------          ------           -------
Microsoft.PowerShell.SDK       6.2.0            Nuget            PowerShell runtime for hosting PowerShell Core
  1. Install the package:
PS [27] > Install-Package Microsoft.PowerShell.SDK -RequiredVersion 6.2.0

Expected behavior

To install without any issues


Actual behavior

See cmdline error during installation:

PS [33] > 

The package(s) come(s) from a package source that is not marked as trusted.
Are you sure you want to install software from 'Nuget'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): A
Install-Package : Unable to find dependent package(s) (Microsoft.NETCore)
At line:1 char:2
+  Install-Package Microsoft.PowerShell.SDK -RequiredVersion 6.2.0
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Microsoft.NETCore:String) [Install-Package], Exception
+ FullyQualifiedErrorId : UnableToFindDependencyPackage,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

PS [45] >

Environment data

PS [7] > $PSVersionTable

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

PS [21] >

PSCoreSDKerr_2019-04-08_18-02-59

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
MaximoTrinidadcommented, Apr 19, 2019

@SydneyhSmith

No luck!

Too much dependencies to try figure out the proper order of installation. I’ll wait until .NET Core 3.0 is out and pray that is much simpler to work with it. (Wishful thinking!)

I’m closing the issue!

0reactions
MaximoTrinidadcommented, Apr 19, 2019

@SydneyhSmith

So, it seems that I’m missing all dependencies. I created a PowerShell Script to install all dependencies that the SDK needs.

And, of course, discover that some these dependencies has more dependencies.

If I’m successful after all these load then I will close the issue today.

I will post my script in case anyone need to avoid this painful experience! But, Hey! Never a dull moment! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

.Net core 2.1 Powershell SDK 6.1.1 can not get correct ...
Hi, I have installed PowerShell Core 6.1.1 from MSI file on my machine and its module locates by default at C:\Program ...
Read more >
Install the Microsoft Graph PowerShell SDK
Learn how to install the Microsoft Graph PowerShell SDK with PowerShellGet.
Read more >
powershell-core (Install) 7.4.0-preview04
Chocolatey is software management automation for Windows that wraps installers, executables, zips, and scripts into compiled packages.
Read more >
Untitled
Enjasa tombola, Turku amk soleops, Aircell st 3100 installation manual, ... Libeco home usa, Shsh download 6.1.2, Angelina jolie schlichte eleganz, ...
Read more >
Microsoft.PowerShell.SDK 7.3.6
Version Downloads Last updated 7.4.0‑preview.4 329 2 months ago 7.4.0‑preview.3 586 4 months ago 7.4.0‑preview.2 456 5 months ago
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found