C# Class AzureIoTHubConnectedService.NuGetUtilities

NuGet package utilities.
Afficher le fichier Open project: Azure/azure-iot-hub-vs-cs

Méthodes publiques

Méthode Description
GetPackageRepositoryPath ( string repositoryName ) : string

Get local repository folder path from registory: HKLM\Software\NuGet\Repository

InstallPackagesAsync ( string>.Dictionary packages, string extensionId, ConnectedServiceLogger logger, Project project, IVsPackageInstallerServices packageInstallerServices, IVsPackageInstaller packageInstaller ) : System.Threading.Tasks.Task

Ensures the appropriate version of the specified packages are installed. If an existing version of the package already exists the following will happen: If a semantically compatible version already exists, no change is made to the package. If an older major version exists, a warning is logged and the package is upgraded. If an older minor/build version exists, an information message is logged and the package is upgraded. If a newer major version exists, a warning is logged and no change is made to the package.

InstallPackagesAsync ( Project targetProject, string>.Dictionary packages, Func installPackage, ConnectedServiceLogger logger, IVsPackageInstallerServices packageInstallerServices ) : System.Threading.Tasks.Task

Ensures the appropriate version of the specified packages are installed. If an existing version of the package already exists the following will happen: If a semantically compatible version already exists, no change is made to the package. If an older major version exists, a warning is logged and the package is upgraded. If an older minor/build version exists, an information message is logged and the package is upgraded. If a newer major version exists, a warning is logged and no change is made to the package.

UninstallPackagesAsync ( Project targetProject, ISet packages, Task>.Func uninstallPackage, ConnectedServiceLogger logger, IVsPackageInstallerServices packageInstallerServices ) : System.Threading.Tasks.Task

Uninstall the packages that exist in the project.

Private Methods

Méthode Description
GetVersion ( string versionString ) : System.Version

Method Details

GetPackageRepositoryPath() public static méthode

Get local repository folder path from registory: HKLM\Software\NuGet\Repository
public static GetPackageRepositoryPath ( string repositoryName ) : string
repositoryName string
Résultat string

InstallPackagesAsync() public static méthode

Ensures the appropriate version of the specified packages are installed. If an existing version of the package already exists the following will happen: If a semantically compatible version already exists, no change is made to the package. If an older major version exists, a warning is logged and the package is upgraded. If an older minor/build version exists, an information message is logged and the package is upgraded. If a newer major version exists, a warning is logged and no change is made to the package.
public static InstallPackagesAsync ( string>.Dictionary packages, string extensionId, ConnectedServiceLogger logger, Project project, IVsPackageInstallerServices packageInstallerServices, IVsPackageInstaller packageInstaller ) : System.Threading.Tasks.Task
packages string>.Dictionary
extensionId string
logger ConnectedServiceLogger
project Project
packageInstallerServices IVsPackageInstallerServices
packageInstaller IVsPackageInstaller
Résultat System.Threading.Tasks.Task

InstallPackagesAsync() public static méthode

Ensures the appropriate version of the specified packages are installed. If an existing version of the package already exists the following will happen: If a semantically compatible version already exists, no change is made to the package. If an older major version exists, a warning is logged and the package is upgraded. If an older minor/build version exists, an information message is logged and the package is upgraded. If a newer major version exists, a warning is logged and no change is made to the package.
public static InstallPackagesAsync ( Project targetProject, string>.Dictionary packages, Func installPackage, ConnectedServiceLogger logger, IVsPackageInstallerServices packageInstallerServices ) : System.Threading.Tasks.Task
targetProject Project
packages string>.Dictionary
installPackage Func
logger ConnectedServiceLogger
packageInstallerServices IVsPackageInstallerServices
Résultat System.Threading.Tasks.Task

UninstallPackagesAsync() public static méthode

Uninstall the packages that exist in the project.
public static UninstallPackagesAsync ( Project targetProject, ISet packages, Task>.Func uninstallPackage, ConnectedServiceLogger logger, IVsPackageInstallerServices packageInstallerServices ) : System.Threading.Tasks.Task
targetProject Project
packages ISet
uninstallPackage Task>.Func
logger ConnectedServiceLogger
packageInstallerServices IVsPackageInstallerServices
Résultat System.Threading.Tasks.Task