public override bool Execute() { Trace.Listeners.MsBuildListenedInvoke(Log, () => { var updater = new LocalVersionsRepoUpdater(); updater.UpdateBuildInfoLatestPackages( ShippedNuGetPackage.Select(item => item.ItemSpec), VersionsRepoLocalBaseDir, VersionsRepoPath); }); return(true); }
public override bool Execute() { MsBuildTraceListener[] listeners = Trace.Listeners.AddMsBuildTraceListeners(Log); var updater = new LocalVersionsRepoUpdater(); updater.UpdateBuildInfoLatestPackages( ShippedNuGetPackage.Select(item => item.ItemSpec), VersionsRepoLocalBaseDir, VersionsRepoPath); Trace.Listeners.RemoveMsBuildTraceListeners(listeners); return(true); }