Ejemplo n.º 1
0
        private void EnsureSelfPackageInstalled(NuGetInstallService installService)
        {
            if (Args.SelfPackageId != null)
            {
                SelfPackage package = new SelfPackage(Args.SelfPackageId);
                if (!installService.IsInstalled(package))
                {
                    if (installService.IsInstalled(package.Id))
                    {
                        installService.Uninstall(package.Id);
                    }

                    installService.Install(package);
                }
            }
        }