本文整理汇总了C#中ICSharpCode.SharpDevelop.Project.ProjectBuildOptions类的典型用法代码示例。如果您正苦于以下问题:C# ProjectBuildOptions类的具体用法?C# ProjectBuildOptions怎么用?C# ProjectBuildOptions使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ProjectBuildOptions类属于ICSharpCode.SharpDevelop.Project命名空间,在下文中一共展示了ProjectBuildOptions类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: MSBuildEngineWorker
internal MSBuildEngineWorker(IMSBuildEngine parentBuildEngine, IProject project, ProjectBuildOptions options, IBuildFeedbackSink feedbackSink, List<string> additionalTargetFiles)
{
this.parentBuildEngine = parentBuildEngine;
this.project = project;
this.projectFileName = project.FileName;
this.projectMinimumSolutionVersion = project.MinimumSolutionVersion;
this.options = options;
this.feedbackSink = feedbackSink;
this.additionalTargetFiles = additionalTargetFiles;
}
开发者ID:Rpinski,项目名称:SharpDevelop,代码行数:10,代码来源:MSBuildEngineWorker.cs
示例2: BuildAsync
public override Task<bool> BuildAsync(ProjectBuildOptions options, IBuildFeedbackSink feedbackSink, IProgressMonitor progressMonitor)
{
if (this.MinimumSolutionVersion == SolutionFormatVersion.VS2005) {
return SD.MSBuildEngine.BuildAsync(
this, options, feedbackSink, progressMonitor.CancellationToken,
new [] { Path.Combine(FileUtility.ApplicationRootPath, @"bin\SharpDevelop.CheckMSBuild35Features.targets") });
} else {
return base.BuildAsync(options, feedbackSink, progressMonitor);
}
}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:10,代码来源:CSharpProject.cs
示例3: StartBuild
public override void StartBuild(ProjectBuildOptions options, IBuildFeedbackSink feedbackSink)
{
if (this.MinimumSolutionVersion == Solution.SolutionVersionVS2005) {
MSBuildEngine.StartBuild(this,
options,
feedbackSink,
MSBuildEngine.AdditionalTargetFiles.Concat(
new [] { Path.Combine(MSBuildEngine.SharpDevelopBinPath, "SharpDevelop.CheckMSBuild35Features.targets") }));
} else {
base.StartBuild(options, feedbackSink);
}
}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:12,代码来源:CSharpProject.cs
示例4: 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();
}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:15,代码来源:MSBuildEngine.cs
示例5: BuildAsync
public Task<bool> BuildAsync(IProject project, ProjectBuildOptions options, IBuildFeedbackSink feedbackSink, CancellationToken cancellationToken, IEnumerable<string> additionalTargetFiles)
{
if (project == null)
throw new ArgumentNullException("project");
if (options == null)
throw new ArgumentNullException("options");
if (feedbackSink == null)
throw new ArgumentNullException("feedbackSink");
var additionalTargetFileList = additionalTargetFiles != null ? additionalTargetFiles.ToList() : new List<string>();
if (project.MinimumSolutionVersion >= SolutionFormatVersion.VS2010) {
additionalTargetFileList.Add(Path.Combine(Path.GetDirectoryName(typeof(MSBuildEngine).Assembly.Location), "SharpDevelop.TargetingPack.targets"));
}
var engine = new MSBuildEngineWorker(this, project, options, feedbackSink, additionalTargetFileList);
return engine.RunBuildAsync(cancellationToken);
}
开发者ID:Paccc,项目名称:SharpDevelop,代码行数:16,代码来源:MSBuildEngine.cs
示例6: GetBuildDependencies
public virtual ICollection<IBuildable> GetBuildDependencies(ProjectBuildOptions buildOptions)
{
lock (SyncRoot) {
List<IBuildable> result = new List<IBuildable>();
foreach (ProjectSection section in this.ProjectSections) {
if (section.Name == "ProjectDependencies") {
foreach (SolutionItem item in section.Items) {
foreach (IProject p in ParentSolution.Projects) {
if (p.IdGuid == item.Name) {
result.Add(p);
}
}
}
}
}
return result;
}
}
开发者ID:Dervall,项目名称:SharpDevelop,代码行数:18,代码来源:AbstractProject.cs
示例7: StartBuild
public virtual void StartBuild(ProjectBuildOptions options, IBuildFeedbackSink feedbackSink)
{
feedbackSink.ReportError(new BuildError { ErrorText = "Building project " + Name + " is not supported.", IsWarning = true });
// we don't know how to build anything, report that we're done.
feedbackSink.Done(true);
}
开发者ID:Dervall,项目名称:SharpDevelop,代码行数:6,代码来源:AbstractProject.cs
示例8: BuildAsync
public Task<bool> BuildAsync(ProjectBuildOptions options, IBuildFeedbackSink feedbackSink, IProgressMonitor progressMonitor)
{
// SharpDevelop already has built our dependencies, so we're done immediately.
return Task.FromResult(true);
}
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:5,代码来源:MultipleProjectBuildable.cs
示例9: MSBuildEngine
private MSBuildEngine(IProject project, ProjectBuildOptions options, IBuildFeedbackSink feedbackSink)
{
this.projectFileName = project.FileName;
this.projectMinimumSolutionVersion = project.MinimumSolutionVersion;
this.options = options;
this.feedbackSink = feedbackSink;
}
开发者ID:lisiynos,项目名称:pascalabcnet,代码行数:7,代码来源:MSBuildEngine.cs
示例10: GetBuildDependencies
public ICollection<IBuildable> GetBuildDependencies(ProjectBuildOptions buildOptions)
{
List<IBuildable> result = new List<IBuildable>();
foreach (IBuildable b in wrapped.GetBuildDependencies(buildOptions)) {
result.Add(factory.GetWrapper(b));
}
lock (cachedBuildDependencies) {
if (buildOptions != null)
cachedBuildDependencies[buildOptions] = result;
else
cachedBuildDependenciesForNullOptions = result;
}
return result;
}
开发者ID:lisiynos,项目名称:pascalabcnet,代码行数:14,代码来源:CompileModifiedProjectsOnly.cs
示例11: GetBuildDependencies
public ICollection<IBuildable> GetBuildDependencies(ProjectBuildOptions buildOptions)
{
throw new NotImplementedException();
}
开发者ID:yuriykipnis,项目名称:SharpDevelop,代码行数:4,代码来源:MockProjectForTagProvider.cs
示例12: StartBuild
public void StartBuild(ProjectBuildOptions buildOptions, IBuildFeedbackSink feedbackSink)
{
throw new NotImplementedException();
}
开发者ID:yuriykipnis,项目名称:SharpDevelop,代码行数:4,代码来源:MockProjectForTagProvider.cs
示例13:
void IBuildable.StartBuild(ProjectBuildOptions buildOptions, IBuildFeedbackSink feedbackSink)
{
// building a solution finishes immediately: we only care for the dependencies
feedbackSink.Done(true);
}
开发者ID:lisiynos,项目名称:pascalabcnet,代码行数:5,代码来源:Solution.cs
示例14: BuildAsync
public override Task<bool> BuildAsync(ProjectBuildOptions options, IBuildFeedbackSink feedbackSink, IProgressMonitor progressMonitor)
{
bool success = false;
if (!VB6Helper.GetIsVB6Available())
{
feedbackSink.ReportError(new BuildError("", "Cannot locate VB6.EXE. Please make sure that you have entered the correct path to the VB6-directory under 'Tools -> VB6'."));
}
else
{
feedbackSink.ReportMessage(new RichText("Building the project using VB6.EXE..."));
var result = VB6Helper.MakeProject(_vbProject);
string[] errors = result.Results;
if (errors.Length == 0)
{
feedbackSink.ReportMessage(new RichText("Building with VB6.EXE completed successfully!"));
success = true;
}
else
{
foreach (string error in errors)
{
if (!string.IsNullOrWhiteSpace(error))
{
feedbackSink.ReportError(new BuildError("", error));
}
}
}
}
return Task.FromResult(success);
}
开发者ID:mks786,项目名称:vb6leap,代码行数:34,代码来源:VbpProject.cs
示例15: CreateProjectBuildOptions
public virtual ProjectBuildOptions CreateProjectBuildOptions(BuildOptions options, bool isRootBuildable)
{
if (options == null)
throw new ArgumentNullException("options");
// start of default implementation
var configMatchings = this.ParentSolution.GetActiveConfigurationsAndPlatformsForProjects(options.SolutionConfiguration, options.SolutionPlatform);
ProjectBuildOptions projectOptions = new ProjectBuildOptions(isRootBuildable ? options.ProjectTarget : options.TargetForDependencies);
projectOptions.BuildOutputVerbosity = options.BuildOutputVerbosity;
// find the project configuration
foreach (var matching in configMatchings) {
if (matching.Project == this) {
projectOptions.Configuration = matching.Configuration;
projectOptions.Platform = matching.Platform;
}
}
// fall back to solution config if we don't find any entries for the project
if (string.IsNullOrEmpty(projectOptions.Configuration))
projectOptions.Configuration = options.SolutionConfiguration;
if (string.IsNullOrEmpty(projectOptions.Platform))
projectOptions.Platform = options.SolutionPlatform;
// copy global properties to project options
foreach (var pair in options.GlobalAdditionalProperties)
projectOptions.Properties[pair.Key] = pair.Value;
if (isRootBuildable) {
// copy properties for root project to project options
foreach (var pair in options.ProjectAdditionalProperties) {
projectOptions.Properties[pair.Key] = pair.Value;
}
}
return projectOptions;
}
开发者ID:Dervall,项目名称:SharpDevelop,代码行数:32,代码来源:AbstractProject.cs
示例16: GetBuildDependencies
public IEnumerable<IBuildable> GetBuildDependencies(ProjectBuildOptions buildOptions)
{
return Enumerable.Empty<IBuildable>();
}
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:4,代码来源:BuildModifiedProjectsOnlyService.cs
示例17: CreateProjectBuildOptions
public static ProjectBuildOptions CreateProjectBuildOptions(this IBuildable buildable, BuildOptions options, bool isRootBuildable)
{
IBuildable2 buildable2 = buildable as IBuildable2;
if (buildable2 != null) {
return buildable2.CreateProjectBuildOptions(options, isRootBuildable);
}
// start of default implementation
var configMatchings = buildable.ParentSolution.GetActiveConfigurationsAndPlatformsForProjects(options.SolutionConfiguration, options.SolutionPlatform);
ProjectBuildOptions projectOptions = new ProjectBuildOptions(isRootBuildable ? options.ProjectTarget : options.TargetForDependencies);
// Find the project configuration, and build an XML string containing all configurations from the solution
StringWriter solutionConfigurationXml = new StringWriter();
using (XmlTextWriter solutionConfigurationWriter = new XmlTextWriter(solutionConfigurationXml)) {
solutionConfigurationWriter.WriteStartElement("SolutionConfiguration", "");
foreach (var matching in configMatchings) {
if (matching.Project == buildable) {
projectOptions.Configuration = matching.Configuration;
projectOptions.Platform = matching.Platform;
}
solutionConfigurationWriter.WriteStartElement("ProjectConfiguration");
solutionConfigurationWriter.WriteAttributeString("Project", matching.Project.IdGuid);
solutionConfigurationWriter.WriteValue(matching.Configuration + "|" + MSBuildInternals.FixPlatformNameForProject(matching.Platform));
solutionConfigurationWriter.WriteEndElement();
}
solutionConfigurationWriter.WriteEndElement();
}
// fall back to solution config if we don't find any entries for the project
if (string.IsNullOrEmpty(projectOptions.Configuration))
projectOptions.Configuration = options.SolutionConfiguration;
if (string.IsNullOrEmpty(projectOptions.Platform))
projectOptions.Platform = options.SolutionPlatform;
// copy properties to project options
options.GlobalAdditionalProperties.ForEach(projectOptions.Properties.Add);
if (isRootBuildable) {
foreach (var pair in options.ProjectAdditionalProperties) {
projectOptions.Properties[pair.Key] = pair.Value;
}
}
// Set property for solution configuration. This allows MSBuild to know the correct configuration for project references,
// which is necessary to resolve the referenced project's OutputPath.
projectOptions.Properties["CurrentSolutionConfigurationContents"] = solutionConfigurationXml.ToString();
return projectOptions;
}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:45,代码来源:IProject.cs
示例18: BuildAsync
public Task<bool> BuildAsync(ProjectBuildOptions options, IBuildFeedbackSink feedbackSink, IProgressMonitor progressMonitor)
{
return Task.FromResult(true);
}
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:4,代码来源:BuildModifiedProjectsOnlyService.cs
示例19: StartBuild
public void StartBuild(ProjectBuildOptions buildOptions, IBuildFeedbackSink feedbackSink)
{
}
开发者ID:lisiynos,项目名称:pascalabcnet,代码行数:3,代码来源:CompileModifiedProjectsOnly.cs
示例20: GetBuildDependencies
public override ICollection<IBuildable> GetBuildDependencies(ProjectBuildOptions buildOptions)
{
ICollection<IBuildable> result = base.GetBuildDependencies(buildOptions);
foreach (ProjectItem item in GetItemsOfType(ItemType.ProjectReference)) {
ProjectReferenceProjectItem prpi = item as ProjectReferenceProjectItem;
if (prpi != null && prpi.ReferencedProject != null)
result.Add(prpi.ReferencedProject);
}
return result;
}
开发者ID:Netring,项目名称:SharpDevelop,代码行数:10,代码来源:MSBuildBasedProject.cs
注:本文中的ICSharpCode.SharpDevelop.Project.ProjectBuildOptions类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论