Example #1
0
        public override Task PostProcessAsync(INuGetProjectContext nuGetProjectContext, CancellationToken token)
        {
            if (restoreRequired)
            {
                return(RestorePackages(nuGetProjectContext, token));
            }

            Runtime.RunInMainThread(() => {
                DotNetProject.NotifyModified("References");
            });

            packageManagementEvents.OnFileChanged(project.GetNuGetAssetsFilePath());

            return(base.PostProcessAsync(nuGetProjectContext, token));
        }
Example #2
0
 public void OnFileChanged(string path)
 {
     packageManagementEvents.OnFileChanged(path);
 }
 void MarkPackagesForReinstallation(PackageCompatibilityChecker checker)
 {
     checker.MarkPackagesForReinstallation();
     packageManagementEvents.OnFileChanged(checker.PackageReferenceFileName);
 }
 public void OnFileChanged(string path)
 {
     unsafeEvents.OnFileChanged(path);
 }