Exemplo n.º 1
0
 public int UpdateProjectCfg_Done(IVsHierarchy pHierProj, IVsCfg pCfgProj, IVsCfg pCfgSln, uint dwAction, int fSuccess, int fCancel)
 {
     try
     {
         var buildAction = StateConverterHelper.ConvertSolutionBuildFlagsToBuildAction(dwAction, (VSSOLNBUILDUPDATEFLAGS)dwAction);
         _buildInformationProvider.ProjectBuildFinished(buildAction, ProjectIdentifierGenerator.GetIdentifierForInteropTypes(pHierProj, pCfgProj), fSuccess == 1, fCancel == 1);
         return(VSConstants.S_OK);
     }
     catch (Exception ex)
     {
         _logger.Error(ex, "");
         throw;
     }
 }
Exemplo n.º 2
0
 public void UpdateSolution_BeginUpdateAction(uint dwAction)
 {
     try
     {
         _solutionProvider.ReloadSolution();
         _currentBuildAction = StateConverterHelper.ConvertSolutionBuildFlagsToBuildAction(dwAction, (VSSOLNBUILDUPDATEFLAGS)dwAction);
         _buildInformationProvider.ReloadCurrentProjects();
     }
     catch (Exception ex)
     {
         _logger.Error(ex, "");
         throw;
     }
 }
Exemplo n.º 3
0
 public int UpdateProjectCfg_Begin(IVsHierarchy pHierProj, IVsCfg pCfgProj, IVsCfg pCfgSln, uint dwAction, ref int pfCancel)
 {
     try
     {
         var projectItem = new UI.Models.ProjectItem();
         var configPair  = pCfgProj.ToConfigurationTuple();
         SolutionProjectsExtensions.UpdateProperties(pHierProj.ToProject(), projectItem, configPair.Item1, configPair.Item2);
         var buildAction = StateConverterHelper.ConvertSolutionBuildFlagsToBuildAction(dwAction, (VSSOLNBUILDUPDATEFLAGS)dwAction);
         _buildInformationProvider.ProjectBuildStarted(projectItem, buildAction);
         return(VSConstants.S_OK);
     }
     catch (Exception ex)
     {
         _logger.Error(ex, "");
         throw;
     }
 }