WriteLine() public méthode

public WriteLine ( ) : void
Résultat void
Exemple #1
0
 private static IProject FindProject(Solution solution, string project)
 {
     try
     {
         return(solution.FindProject(project));
     }
     catch (Exception e)
     {
         console.WriteLine(e.Message);
         return(null);
     }
 }
Exemple #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);
        }
Exemple #3
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;
		}