Beispiel #1
0
        public override async Task <object> RunAsync(CommandLineProcessor processor, IConsoleHost host)
        {
            var configuration = ReferenceSwitcherConfiguration.Load(Configuration);

            SwitchToPackages(host, configuration);
            await RemoveProjectsFromSolutionAsync(configuration, host);

            configuration.Save();

            return(null);
        }
        public override async Task <object> RunAsync(CommandLineProcessor processor, IConsoleHost host)
        {
            var configuration = ReferenceSwitcherConfiguration.Load(Configuration, host);

            if (configuration == null)
            {
                return(null);
            }

            await AddProjectsToSolutionAsync(configuration, host);

            SwitchToProjects(configuration, host);

            configuration.Save();

            return(null);
        }
Beispiel #3
0
        public override async Task <object> RunAsync(CommandLineProcessor processor, IConsoleHost host)
        {
            var configuration = ReferenceSwitcherConfiguration.Load(Configuration, host);

            if (configuration == null)
            {
                return(null);
            }

            SwitchToPackages(host, configuration);
            await RemoveProjectsFromSolutionAsync(configuration, host);

            configuration.Restore = null; // restore information no longer needed
            configuration.Save();

            return(null);
        }