private IDependencies CreateDependencies() { var deps = new List <IDependencies>(); if (project.HasNonEmptySourceSet("cpp")) { var filteredSourceSet = project.GetSourceSet("cpp").FilterCppSourceSet( project.RootDirectory.GetChildDirectory("cpp"), suite.SuiteRoot); deps.Add(sourceSetDependencyFactory.CreateSourceSetStructureDependency(filteredSourceSet, fn => fn.EndsWith(".vcxproj", StringComparison.InvariantCultureIgnoreCase) || fn.EndsWith(".vcxproj.user", StringComparison.InvariantCultureIgnoreCase))); } deps.Add(new ProjectPropertiesDependencies(project, "Name", "Type", "EffectiveVersion")); VCppATLParametersDependencies.Add(project, deps); VCppCLIParametersDependencies.Add(project, deps); VCppCompilerParametersDependencies.Add(project, deps); VCppLinkerParametersDependencies.Add(project, deps); VCppManifestParametersDependencies.Add(project, deps); VCppMIDLParametersDependencies.Add(project, deps); if (referenceBuilders != null) { deps.AddRange(referenceBuilders.OfType <IReferenceBuilder>().Select(CreateReferenceDependency)); } //if (appConfigBuilder != null && appConfigBuilder.HasConfigFile) // deps.Add(new SubtaskDependency(appConfigBuilder)); return(MultipleDependenciesHelper.CreateMultipleDependencies(new HashSet <IDependencies>(deps))); }
private IDependencies CreateDependencies() { var deps = new List <IDependencies>(); if (project.HasNonEmptySourceSet("cs")) { deps.Add(sourceSetDependencyFactory.CreateSourceSetStructureDependency(project.GetSourceSet("cs"), fn => fn.EndsWith(".csproj", StringComparison.InvariantCultureIgnoreCase) || fn.EndsWith(".csproj.user", StringComparison.InvariantCultureIgnoreCase))); } if (project.HasNonEmptySourceSet("appconfig")) { deps.Add(sourceSetDependencyFactory.CreateSourceSetStructureDependency(project.GetSourceSet("appconfig"), null)); } if (project.HasNonEmptySourceSet("manifest")) { deps.Add(sourceSetDependencyFactory.CreateSourceSetStructureDependency(project.GetSourceSet("manifest"), null)); } if (project.HasNonEmptySourceSet("resources")) { deps.Add(sourceSetDependencyFactory.CreateSourceSetStructureDependency(project.GetSourceSet("resources"), null)); } deps.Add(new ProjectPropertiesDependencies(project, "Name", "Type", "EffectiveVersion")); WPFParametersDependencies.Add(project, deps); CsharpParametersDependencies.Add(project, deps); if (referenceBuilders != null) { deps.AddRange( referenceBuilders.Select( (refBuilder, idx) => CreateReferenceDependency(refBuilder, referenceBuilders[idx]))); } return(MultipleDependenciesHelper.CreateMultipleDependencies(new HashSet <IDependencies>(deps))); }
private IDependencies CreateDepenencies() { var deps = new List <IDependencies>(); if (project.HasNonEmptySourceSet("fs")) { deps.Add(sourceSetDependencyFactory.CreateSourceSetStructureDependency(project.GetSourceSet("fs"), fn => fn.EndsWith(".fsproj", StringComparison.InvariantCultureIgnoreCase) || fn.EndsWith(".fsproj.user", StringComparison.InvariantCultureIgnoreCase))); } deps.Add(new ProjectPropertiesDependencies(project, "Name", "Type", "EffectiveVersion")); FsharpParametersDependencies.Add(project, deps); FileOrderDependencies.Add(project, deps); if (referenceBuilders != null) { deps.AddRange(referenceBuilders.OfType <IReferenceBuilder>().Select(CreateReferenceDependency)); } return(MultipleDependenciesHelper.CreateMultipleDependencies(new HashSet <IDependencies>(deps))); }