Méthode | Description | |
---|---|---|
GetPackageRepositoryPath ( string repositoryName ) : string |
Get local repository folder path from registory: HKLM\Software\NuGet\Repository
|
|
InstallPackagesAsync ( string>.Dictionary |
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 |
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 |
Uninstall the packages that exist in the project.
|
Méthode | Description | |
---|---|---|
GetVersion ( string versionString ) : System.Version |
public static GetPackageRepositoryPath ( string repositoryName ) : string | ||
repositoryName | string | |
Résultat | string |
public static InstallPackagesAsync ( string>.Dictionary |
||
packages | string>.Dictionary | |
extensionId | string | |
logger | ConnectedServiceLogger | |
project | Project | |
packageInstallerServices | IVsPackageInstallerServices | |
packageInstaller | IVsPackageInstaller | |
Résultat | System.Threading.Tasks.Task |
public static InstallPackagesAsync ( Project targetProject, string>.Dictionary |
||
targetProject | Project | |
packages | string>.Dictionary | |
installPackage | Func |
|
logger | ConnectedServiceLogger | |
packageInstallerServices | IVsPackageInstallerServices | |
Résultat | System.Threading.Tasks.Task |
public static UninstallPackagesAsync ( Project targetProject, ISet |
||
targetProject | Project | |
packages | ISet |
|
uninstallPackage | Task>.Func | |
logger | ConnectedServiceLogger | |
packageInstallerServices | IVsPackageInstallerServices | |
Résultat | System.Threading.Tasks.Task |