private void DeploymentStepStarted(object sender, DeploymentStepStartedEventArgs e)
 {
     if (e.DeploymentStepInfo.Id == DeploymentStepIds.AddSolution)
     {
         e.Conflicts.Add("This is an example conflict", this.Resolve, true);
         e.ProjectItem.Project.ProjectService.Logger.WriteLine("Added new example conflict.", LogCategory.Status);
     }
 }
Esempio n. 2
0
 private void DeploymentStepStarted(object sender, DeploymentStepStartedEventArgs e)
 {
     if (e.DeploymentStepInfo.Id == DeploymentStepIds.RecycleApplicationPool &&
         e.DeploymentContext.IsDeploying)
     {
         e.DeploymentContext.Logger.WriteLine("The application pool is about to be " +
                                              "recycled while the solution is being deployed.", LogCategory.Status);
     }
 }