Пример #1
0
 public PropertiesSection(Suite suite, IProjectGuidManagement projectGuidManagement, [TargetRoot] IFileSystemDirectory targetDir, IProjectPlatformManagement platformManagement)
     : base(suite)
 {
     this.projectGuidManagement = projectGuidManagement;
     this.targetDir             = targetDir;
     this.platformManagement    = platformManagement;
 }
Пример #2
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="targetDir">Target directory where the compiled files will be placed</param>
 public ReferencesSection(Suite suite, IProjectGuidManagement projectGuidManagement, string sourceSetName, [TargetRoot] IFileSystemDirectory targetDir)
     : base(suite)
 {
     this.projectGuidManagement = projectGuidManagement;
     this.sourceSetName         = sourceSetName;
     this.targetDir             = targetDir;
 }
Пример #3
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="targetDir">Target directory where the compiled files will be placed</param>
 public ReferencesSection(Suite suite, IProjectGuidManagement projectGuidManagement, string sourceSetName, [TargetRoot] IFileSystemDirectory targetDir)
     : base(suite)
 {
     this.projectGuidManagement = projectGuidManagement;
     this.sourceSetName = sourceSetName;
     this.targetDir = targetDir;
 }
Пример #4
0
 public PropertiesSection(Suite suite, IProjectGuidManagement projectGuidManagement, [TargetRoot] IFileSystemDirectory targetDir, IProjectPlatformManagement platformManagement)
     : base(suite)
 {
     this.projectGuidManagement = projectGuidManagement;
     this.targetDir = targetDir;
     this.platformManagement = platformManagement;
 }
Пример #5
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="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>
        public SlnBuilder(IProjectGuidManagement projectGuidManagement, IProjectPlatformManagement projectPlatformManagement, IEnumerable <ISlnProject> supportedSlnProjects, IEnumerable <Project> projects, [SuiteRoot] IFileSystemDirectory suiteRoot, [TargetRoot] IFileSystemDirectory targetDir, ISlnNameGenerator slnNameGenerator, IInSolutionReferenceBuilderFactory inSolutionReferenceBuilderFactory, IEnumerable <ISolutionItemProvider> solutionItemProviders)
        {
            Contract.Requires(projectGuidManagement != null);
            Contract.Requires(projectPlatformManagement != 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.targetDir        = targetDir;
            this.slnNameGenerator = slnNameGenerator;
            this.inSolutionReferenceBuilderFactory = inSolutionReferenceBuilderFactory;
            this.solutionItemProviders             = solutionItemProviders;
            this.projectPlatformManagement         = projectPlatformManagement;
        }
Пример #6
0
        /// <summary>
        /// Initializes the solution file generator
        /// </summary>
        /// <param name="projectGuidManagement">Project guid mapping to be used</param>
        /// <param name="projectPlatformManagement">For getting project's default platform name</param>
        /// <param name="supportedSlnProjects">All the supported SLN project implementations</param>
        /// <param name="projects">The set of projects to be added to the solution</param>
        /// <param name="output">Text writer to write the solution file</param>
        /// <param name="suiteRoot">Suite's root directory </param>
        /// <param name="slnDir">Directory where the sln is being generated </param>
        /// <param name="getProjectSolutionReferences">Function which returns all the referenced projects which are in the same solution</param>
        /// <param name="solutionItemProviders">List of registered solution item providers</param>
        /// <param name="slnName">Solution's unique name</param>
        public SlnGenerator(IProjectGuidManagement projectGuidManagement, IProjectPlatformManagement projectPlatformManagement, IEnumerable<ISlnProject> supportedSlnProjects, IEnumerable<Project> projects, TextWriter output, IFileSystemDirectory suiteRoot, IFileSystemDirectory slnDir, Func<Project, IEnumerable<Project>> getProjectSolutionReferences, IEnumerable<ISolutionItemProvider> solutionItemProviders, string slnName)
        {
            Contract.Requires(projectGuidManagement != null);
            Contract.Requires(projectPlatformManagement != null);
            Contract.Requires(projects != null);
            Contract.Requires(output != null);
            Contract.Requires(suiteRoot != null);
            Contract.Requires(slnDir != null);
            Contract.Requires(getProjectSolutionReferences != null);
            Contract.Requires(supportedSlnProjects != null);
            Contract.Requires(solutionItemProviders != null);

            this.projectGuidManagement = projectGuidManagement;
            this.projectPlatformManagement = projectPlatformManagement;
            this.projects = projects.ToList();
            this.output = output;
            this.suiteRoot = suiteRoot;
            this.slnDir = slnDir;
            this.getProjectSolutionReferences = getProjectSolutionReferences;
            this.solutionItemProviders = solutionItemProviders;
            this.slnName = slnName;
            this.supportedSlnProjects = supportedSlnProjects;
        }
Пример #7
0
        /// <summary>
        /// Initializes the solution file generator
        /// </summary>
        /// <param name="projectGuidManagement">Project guid mapping to be used</param>
        /// <param name="projectPlatformManagement">For getting project's default platform name</param>
        /// <param name="supportedSlnProjects">All the supported SLN project implementations</param>
        /// <param name="projects">The set of projects to be added to the solution</param>
        /// <param name="output">Text writer to write the solution file</param>
        /// <param name="suiteRoot">Suite's root directory </param>
        /// <param name="slnDir">Directory where the sln is being generated </param>
        /// <param name="getProjectSolutionReferences">Function which returns all the referenced projects which are in the same solution</param>
        /// <param name="solutionItemProviders">List of registered solution item providers</param>
        /// <param name="slnName">Solution's unique name</param>
        public SlnGenerator(IProjectGuidManagement projectGuidManagement, IProjectPlatformManagement projectPlatformManagement, IEnumerable <ISlnProject> supportedSlnProjects, IEnumerable <Project> projects, TextWriter output, IFileSystemDirectory suiteRoot, IFileSystemDirectory slnDir, Func <Project, IEnumerable <Project> > getProjectSolutionReferences, IEnumerable <ISolutionItemProvider> solutionItemProviders, string slnName)
        {
            Contract.Requires(projectGuidManagement != null);
            Contract.Requires(projectPlatformManagement != null);
            Contract.Requires(projects != null);
            Contract.Requires(output != null);
            Contract.Requires(suiteRoot != null);
            Contract.Requires(slnDir != null);
            Contract.Requires(getProjectSolutionReferences != null);
            Contract.Requires(supportedSlnProjects != null);
            Contract.Requires(solutionItemProviders != null);

            this.projectGuidManagement     = projectGuidManagement;
            this.projectPlatformManagement = projectPlatformManagement;
            this.projects  = projects.ToList();
            this.output    = output;
            this.suiteRoot = suiteRoot;
            this.slnDir    = slnDir;
            this.getProjectSolutionReferences = getProjectSolutionReferences;
            this.solutionItemProviders        = solutionItemProviders;
            this.slnName = slnName;
            this.supportedSlnProjects = supportedSlnProjects;
        }
Пример #8
0
 /// <summary>
 /// Initializes the class
 /// </summary>
 /// <param name="suite">Active suite</param>
 /// <param name="projectGuidManagement">Project GUID management service</param>
 /// <param name="targetDir">Target directory where the compiled files will be placed</param>
 public StaticLibraryReferencesSection(Suite suite, IProjectGuidManagement projectGuidManagement, [TargetRoot] IFileSystemDirectory targetDir)
     : base(suite)
 {
     this.projectGuidManagement = projectGuidManagement;
     this.targetDir = targetDir;
 }
Пример #9
0
 /// <summary>
 /// Initializes the class
 /// </summary>
 /// <param name="suite">Active suite</param>
 /// <param name="projectGuidManagement">Project GUID management service</param>
 /// <param name="targetDir">Target directory where the compiled files will be placed</param>
 public StaticLibraryReferencesSection(Suite suite, IProjectGuidManagement projectGuidManagement, [TargetRoot] IFileSystemDirectory targetDir)
     : base(suite)
 {
     this.projectGuidManagement = projectGuidManagement;
     this.targetDir             = targetDir;
 }
Пример #10
0
 /// <summary>
 /// Initializes the class
 /// </summary>
 /// <param name="suite">Active suite</param>
 /// <param name="projectGuidManagement">Project GUID management service</param>
 public StaticLibraryReferencesSection(Suite suite, IProjectGuidManagement projectGuidManagement)
     : base(suite)
 {
     this.projectGuidManagement = projectGuidManagement;
 }
Пример #11
0
 /// <summary>
 /// Initializes the class
 /// </summary>
 /// <param name="suite">Active suite</param>
 /// <param name="projectGuidManagement">Project GUID management service</param>
 public StaticLibraryReferencesSection(Suite suite, IProjectGuidManagement projectGuidManagement)
     : base(suite)
 {
     this.projectGuidManagement = projectGuidManagement;
 }