public static void StartBuild(IProject project, ProjectBuildOptions options, IBuildFeedbackSink feedbackSink, IEnumerable <string> additionalTargetFiles) { if (project == null) { throw new ArgumentNullException("project"); } if (options == null) { throw new ArgumentNullException("options"); } if (feedbackSink == null) { throw new ArgumentNullException("feedbackSink"); } if (additionalTargetFiles == null) { throw new ArgumentNullException("additionalTargetFiles"); } MSBuildEngine engine = new MSBuildEngine(project, options, feedbackSink); engine.additionalTargetFiles = additionalTargetFiles.ToList(); if (project.MinimumSolutionVersion >= Solution.SolutionVersionVS2010) { engine.additionalTargetFiles.Add(Path.Combine(Path.GetDirectoryName(typeof(MSBuildEngine).Assembly.Location), "SharpDevelop.TargetingPack.targets")); } engine.StartBuild(); }
public static void StartBuild(IProject project, ProjectBuildOptions options, IBuildFeedbackSink feedbackSink, IEnumerable <string> additionalTargetFiles) { if (project == null) { throw new ArgumentNullException("project"); } if (options == null) { throw new ArgumentNullException("options"); } if (feedbackSink == null) { throw new ArgumentNullException("feedbackSink"); } if (additionalTargetFiles == null) { throw new ArgumentNullException("additionalTargetFiles"); } MSBuildEngine engine = new MSBuildEngine(project, options, feedbackSink); engine.additionalTargetFiles = additionalTargetFiles; engine.StartBuild(); }
public static void StartBuild(IProject project, ProjectBuildOptions options, IBuildFeedbackSink feedbackSink, IEnumerable<string> additionalTargetFiles) { if (project == null) throw new ArgumentNullException("project"); if (options == null) throw new ArgumentNullException("options"); if (feedbackSink == null) throw new ArgumentNullException("feedbackSink"); if (additionalTargetFiles == null) throw new ArgumentNullException("additionalTargetFiles"); MSBuildEngine engine = new MSBuildEngine(project, options, feedbackSink); engine.additionalTargetFiles = additionalTargetFiles.ToList(); if (project.MinimumSolutionVersion >= Solution.SolutionVersionVS2010) { engine.additionalTargetFiles.Add(Path.Combine(Path.GetDirectoryName(typeof(MSBuildEngine).Assembly.Location), "SharpDevelop.TargetingPack.targets")); } engine.StartBuild(); }
public override void StartBuild(ProjectBuildOptions options, IBuildFeedbackSink feedbackSink) { MSBuildEngine.StartBuild(this, options, feedbackSink, MSBuildEngine.AdditionalTargetFiles); }
public static void StartBuild(IProject project, ProjectBuildOptions options, IBuildFeedbackSink feedbackSink, IEnumerable<string> additionalTargetFiles) { if (project == null) throw new ArgumentNullException("project"); if (options == null) throw new ArgumentNullException("options"); if (feedbackSink == null) throw new ArgumentNullException("feedbackSink"); if (additionalTargetFiles == null) throw new ArgumentNullException("additionalTargetFiles"); MSBuildEngine engine = new MSBuildEngine(project, options, feedbackSink); engine.additionalTargetFiles = additionalTargetFiles; engine.StartBuild(); }