ProcessTaskFile() 공개 메소드

public ProcessTaskFile ( Project, project ) : void
project Project,
리턴 void
예제 #1
0
 public int OnAfterOpenSolution(object pUnkReserved, int fNewSolution)
 {
     try
     {
         var dte = (DTE)ServiceProvider.GlobalProvider.GetService(typeof(DTE));
         if (!string.IsNullOrEmpty(dte.Solution.FullName))
         {
             var solutionDirectory = Path.GetDirectoryName(dte.Solution.FullName);
             taskFileProcessor.ProcessTaskFile(solutionDirectory);
         }
     }
     catch (Exception exception)
     {
         exceptionDialog.HandleException(exception);
     }
     return(VSConstants.S_OK);
 }
예제 #2
0
 public int OnAfterOpenSolution(object pUnkReserved, int fNewSolution)
 {
     try
     {
         foreach (var project in allProjectFinder.GetAllProjects())
         {
             try
             {
                 taskFileProcessor.ProcessTaskFile(project);
             }
             catch (Exception exception)
             {
                 errorDisplayer.ShowError(string.Format("Costura: An exception occured while trying to process {0}.\r\nException: {1}.", project.FullName, exception));
             }
         }
     }
     catch (Exception exception)
     {
         exceptionDialog.HandleException(exception);
     }
     return(VSConstants.S_OK);
 }