public override bool Execute()
        {
            Trace.Listeners.MsBuildListenedInvoke(Log, () =>
            {
                var updater = new LocalVersionsRepoUpdater();

                updater.UpdateBuildInfoLatestPackages(
                    ShippedNuGetPackage.Select(item => item.ItemSpec),
                    VersionsRepoLocalBaseDir,
                    VersionsRepoPath);
            });
            return(true);
        }
Exemplo n.º 2
0
        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);
        }