상속: IConsole
예제 #1
0
        private static int RunClean(CleanOptions options)
        {
            var solution = LoadSolution(options);

            var console = new ProgramConsole();

            IProject project = null;

            if (options.Project != null)
            {
                project = FindProject(solution, options.Project);
            }
            else
            {
                project = solution.StartupProject;
            }

            if (project != null)
            {
                project.ToolChain.Clean(console, project).Wait();
            }
            else
            {
                console.WriteLine("Nothing to clean.");
            }

            return(1);
        }
예제 #2
0
		private static int RunClean(CleanOptions options)
		{
			var solution = LoadSolution(options);

			var console = new ProgramConsole();

			IProject project = null;

			if (options.Project != null)
			{
				project = FindProject(solution, options.Project);
			}
			else
			{
				project = solution.StartupProject;
			}

			if (project != null)
			{
				project.ToolChain.Clean(console, project).Wait();
			}
			else
			{
				console.WriteLine("Nothing to clean.");
			}

			return 1;
		}