コード例 #1
0
 /// <summary>
 /// Initializes the class
 /// </summary>
 /// <param name="suite">Active suite</param>
 /// <param name="projectGuidManagement">Project GUID management service</param>
 /// <param name="sourceSetName">Source set name</param>
 /// <param name="pathManagement">Project-projectfile mapping</param>
 /// <param name="targetDir">Target directory where the compiled files will be placed</param>
 public ReferencesSection(Suite suite, IProjectGuidManagement projectGuidManagement, string sourceSetName, IProjectPathManagement pathManagement, [TargetRoot] IFileSystemDirectory targetDir)
     : base(suite)
 {
     this.projectGuidManagement = projectGuidManagement;
     this.sourceSetName         = sourceSetName;
     this.pathManagement        = pathManagement;
     this.targetDir             = targetDir;
 }
コード例 #2
0
ファイル: ReferencesSection.cs プロジェクト: vigoo/bari
 /// <summary>
 /// Initializes the class
 /// </summary>
 /// <param name="suite">Active suite</param>
 /// <param name="projectGuidManagement">Project GUID management service</param>
 /// <param name="sourceSetName">Source set name</param>
 /// <param name="pathManagement">Project-projectfile mapping</param>
 /// <param name="targetDir">Target directory where the compiled files will be placed</param>
 public ReferencesSection(Suite suite, IProjectGuidManagement projectGuidManagement, string sourceSetName, IProjectPathManagement pathManagement, [TargetRoot] IFileSystemDirectory targetDir)
     : base(suite)
 {
     this.projectGuidManagement = projectGuidManagement;
     this.sourceSetName = sourceSetName;
     this.pathManagement = pathManagement;
     this.targetDir = targetDir;
 }
コード例 #3
0
 public ProjectPathExplorer(IEnumerable <ISlnProject> supportedSlnProjects, IProjectPathManagement pathManagement)
 {
     this.supportedSlnProjects = supportedSlnProjects.Where(p => p.SupportsProjectReferences).ToList();
     this.pathManagement       = pathManagement;
 }
コード例 #4
0
        /// <summary>
        /// Creates the builder
        /// </summary>
        /// <param name="projectGuidManagement">The project-guid mapper to use</param>
        /// <param name="projectPlatformManagement">Interface for getting default project configuration names</param>
        /// <param name="supportedSlnProjects">Supported project types</param>
        /// <param name="projects">The projects to be included to the solution</param>
        /// <param name="msBuildVersion">MSBuild version to use</param>
        /// <param name="suiteRoot">Suite's root directory </param>
        /// <param name="targetDir">The target directory where the sln file should be put</param>
        /// <param name="slnNameGenerator">Name generator implementation for the sln file </param>
        /// <param name="inSolutionReferenceBuilderFactory">Interface to create new in-solution reference builder instances</param>
        /// <param name="solutionItemProviders">List of registered solution item providers</param>
        /// <param name="projectPathManagement">Project-project path mapping</param>
        public SlnBuilder(IProjectGuidManagement projectGuidManagement, IProjectPlatformManagement projectPlatformManagement, IEnumerable <ISlnProject> supportedSlnProjects, IEnumerable <Project> projects, MSBuildVersion msBuildVersion, [SuiteRoot] IFileSystemDirectory suiteRoot, [TargetRoot] IFileSystemDirectory targetDir, ISlnNameGenerator slnNameGenerator, IInSolutionReferenceBuilderFactory inSolutionReferenceBuilderFactory, IEnumerable <ISolutionItemProvider> solutionItemProviders, IProjectPathManagement projectPathManagement)
        {
            Contract.Requires(projectGuidManagement != null);
            Contract.Requires(projectPlatformManagement != null);
            Contract.Requires(projectPathManagement != null);
            Contract.Requires(supportedSlnProjects != null);
            Contract.Requires(projects != null);
            Contract.Requires(targetDir != null);
            Contract.Requires(suiteRoot != null);
            Contract.Requires(slnNameGenerator != null);
            Contract.Requires(inSolutionReferenceBuilderFactory != null);
            Contract.Requires(solutionItemProviders != null);

            this.projectGuidManagement = projectGuidManagement;
            this.supportedSlnProjects  = supportedSlnProjects;
            this.suiteRoot             = suiteRoot;
            this.projects                  = projects.ToList();
            this.msBuildVersion            = msBuildVersion;
            this.targetDir                 = targetDir;
            this.slnNameGenerator          = slnNameGenerator;
            this.solutionItemProviders     = solutionItemProviders;
            this.projectPlatformManagement = projectPlatformManagement;
        }
コード例 #5
0
ファイル: ProjectPathExplorer.cs プロジェクト: vigoo/bari
 public ProjectPathExplorer(IEnumerable<ISlnProject> supportedSlnProjects, IProjectPathManagement pathManagement)
 {
     this.supportedSlnProjects = supportedSlnProjects.Where(p => p.SupportsProjectReferences).ToList();
     this.pathManagement = pathManagement;
 }