~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/Main/Base/Project/Src/Internal/Templates/Project/ProjectCreateInformation.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
 
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
 
3
 
 
4
using System;
 
5
using System.Collections.Generic;
 
6
using System.Collections.ObjectModel;
 
7
using System.IO;
 
8
 
 
9
using ICSharpCode.SharpDevelop.Project;
 
10
 
 
11
namespace ICSharpCode.SharpDevelop.Internal.Templates
 
12
{
 
13
        /// <summary>
 
14
        /// This class holds all information the language binding need to create
 
15
        /// a predefined project for their language, if no project template for a
 
16
        /// specific language is avaiable, the language binding shouldn't care about
 
17
        /// this stuff.
 
18
        /// </summary>
 
19
        public class ProjectCreateInformation
 
20
        {
 
21
                internal List<IProject> createdProjects = new List<IProject>();
 
22
                
 
23
                public ProjectCreateInformation()
 
24
                        : this(new IProject[0])
 
25
                {
 
26
                }
 
27
                
 
28
                public ProjectCreateInformation(IEnumerable<IProject> projects)
 
29
                {
 
30
                        Platform = "x86";
 
31
                        createdProjects.AddRange(projects);
 
32
                }               
 
33
                
 
34
                public ReadOnlyCollection<IProject> CreatedProjects {
 
35
                        get { return createdProjects.AsReadOnly(); }
 
36
                }
 
37
                
 
38
                public string OutputProjectFileName { get; set; }
 
39
                public string Platform { get; set; }
 
40
                public string ProjectName { get; set; }
 
41
                public string SolutionName { get; set; }
 
42
                public string RootNamespace { get; set; }
 
43
                public string SolutionPath { get; set; }
 
44
                public string ProjectBasePath { get; set; }
 
45
                public TargetFramework TargetFramework { get; set; }
 
46
                public Solution Solution { get; set; }
 
47
        }
 
48
}