Example #1
0
 protected override void ExecuteCore()
 {
     using (IOpenPackageReadMeMonitor monitor = CreateOpenPackageReadMeMonitor(Package.Id)) {
         Project.InstallPackage(Package, this);
         monitor.OpenReadMeFile();
         OnParentPackageInstalled();
     }
 }
Example #2
0
 protected override void ExecuteCore()
 {
     if (ShouldUpdatePackage())
     {
         using (IOpenPackageReadMeMonitor readmeMonitor = CreateOpenPackageReadMeMonitor(Package.Id)) {
             using (IDisposable monitor = CreateFileMonitor(fileRemover)) {
                 using (IDisposable referenceMaintainer = CreateLocalCopyReferenceMaintainer()) {
                     Project.UpdatePackage(Package, this);
                     readmeMonitor.OpenReadMeFile();
                 }
             }
         }
         OnParentPackageInstalled();
     }
     else
     {
         LogNoUpdatesAvailableForPackage(GetPackageId());
     }
 }
 protected override void ExecuteCore()
 {
     using (IOpenPackageReadMeMonitor monitor = CreateOpenPackageReadMeMonitor(Package.Id)) {
         using (IDisposable fileMonitor = CreateFileMonitor(fileRemover)) {
             if (PreserveLocalCopyReferences)
             {
                 using (IDisposable referenceMaintainer = CreateLocalCopyReferenceMaintainer()) {
                     Project.InstallPackage(Package, this);
                 }
             }
             else
             {
                 Project.InstallPackage(Package, this);
             }
         }
         monitor.OpenReadMeFile();
         OnParentPackageInstalled();
     }
 }