Repository navigation
Make PowerShellGet loaded for PackageManagement - #1237
Conversation
| return Enumerable.Empty<Feed>(); | ||
| } | ||
|
|
||
| /* No bootstrap |
There was a problem hiding this comment.
Rather than commenting this out, you probably want to do an #if !PORTABLE guard, and add that as a define to your build.
|
I'm definitely very new to PackageManagement etc., but I'm trying to use this to install a module provided as a NuGet package, specifically Invoke-Build. > Get-PackageSource
WARNING: Unable to find package sources.
> Register-PackageSource -Provider NuGet -Name NuGet.org -Location https://api.nuget.org/v3/index.json
Name ProviderName IsTrusted Location
---- ------------ --------- --------
NuGet.org NuGet False https://api.nug...
> get-package -Provider NuGet Invoke-Build
get-package : No package found for 'Invoke-Build'.
At line:1 char:1
+ get-package -Provider NuGet Invoke-Build
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power...lets.GetPacka
ge:GetPackage) [Get-Package], Exception
+ FullyQualifiedErrorId : NoMatchFound,Microsoft.PowerShell.PackageManagem
ent.Cmdlets.GetPackage
> Get-PackageSource
WARNING: Unable to find package sources.I probably just did something wrong, but I thought I registered the package source. I couldn't set it, and couldn't use it. Raghu Shantha (@raghushantha) how do you do this? |
|
Hi Andy Jordan (@andschwa), currently you cannot register package source with NuGet provider on Linux yet because we have not mapped the windows location where we store our package source over. Currently, you can directly use it to find packages on nuget.org or powershellgallery.com with "Find-Package -provider nuget -source https://www.nuget.org/api/v2/" or "find-package -provider nuget -source https://www.powershellgallery.com/api/v2/" |
|
|
|
Andy Jordan (@andschwa) - Is travis-ci stuck due to https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md#why-did-my-travis-ci-build-fail-with-github_token-variable-is-undefined-please-provide-token? How can quoc progress with this PR? |
|
Raghu Shantha (@raghushantha) If it were working, it would be (it's currently stuck because they're having capacity issues). |
|
Thanks Andy Jordan (@andschwa). Looks like CI is good now. Merging in 3.2.1... (since Quoc Truong (@quoctruong) is OOF today) |
…taproviderfix Make PowerShellGet loaded for PackageManagement
Make PowerShellGet loaded for PackageManagement.
Make NuGetProvider and PackageSourceListProvider loaded by default.
Change PSGet name to PowerShellGet.
This change is