Не удается установить Microsoft.ApplicationInsights в Powershell @ 2.12.0 - PullRequest
0 голосов
/ 24 января 2020

Я пытаюсь установить Microsoft.ApplicationInsights 2.12.0, чтобы добавить телеметрию в мое приложение powershell.

При попытке выполнить следующие инструкции:

Install-Package Microsoft.ApplicationInsights -Verbose

Я получаю следующие ошибки:

VERBOSE: Using the provider 'Programs' for searching packages.
VERBOSE: Using the provider 'msu' for searching packages.
VERBOSE: Using the provider 'msi' for searching packages.
VERBOSE: Using the provider 'NuGet' for searching packages.
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: Searching repository 'https://api.nuget.org/v3/index.json/FindPackagesById()?id='Microsoft.ApplicationInsights'' for ''.
VERBOSE: The -Repository parameter was not specified.  PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Microsoft.ApplicationInsights'' for ''.
VERBOSE: Total package yield:'0' for the specified package 'Microsoft.ApplicationInsights'.
Install-Package : No match was found for the specified search criteria and package name 'Microsoft.ApplicationInsights'. Try Get-PackageSource to 
see all available registered package sources.
At line:1 char:1
+ Install-Package Microsoft.ApplicationInsights -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
    + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

Я точно знаю, что пакет NuGet существует, насколько я могу см. список на официальном сайте: https://www.nuget.org/packages/Microsoft.ApplicationInsights/

Но по какой-то причине я не могу установить его.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...