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);
 }