예제 #1
0
        public MSBuildProject(string projectFile, string targetNames, IEnumerable properties, IEnumerable items, TurtleParameters parameters)
            : base(projectFile, parameters)
        {
            if (targetNames == null)
            {
                throw new ArgumentNullException("targetNames");
            }
            else if (properties == null)
            {
                throw new ArgumentNullException("properties");
            }
            else if (items == null)
            {
                throw new ArgumentNullException("items");
            }
            else if (parameters == null)
            {
                throw new ArgumentNullException("parameters");
            }

            _targetNames = targetNames;
            _properties  = properties;
            _items       = items;
            _parameters  = parameters;
            ProjectType  = "MSBuild";
        }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Project"/> class.
        /// </summary>
        /// <param name="projectFile">The project file.</param>
        /// <param name="projectName">Name of the project.</param>
        /// <param name="parameters">The parameters.</param>
        public Project(string projectFile, string projectName, TurtleParameters parameters)
        {
            if (string.IsNullOrEmpty(projectFile))
            {
                throw new ArgumentNullException("projectFile");
            }
            else if (string.IsNullOrEmpty(projectName))
            {
                throw new ArgumentNullException("projectFile");
            }
            else if (parameters == null)
            {
                throw new ArgumentNullException("parameters");
            }

            _projectFile = projectFile;
            ProjectName  = projectName;
            _parameters  = parameters;

            _contentFiles = new SortedFileList();
            _scriptFiles  = new SortedFileList();
            _contentFiles.BaseDirectory = ProjectPath;
            _scriptFiles.BaseDirectory  = ProjectPath;
        }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Project"/> class.
 /// </summary>
 /// <param name="projectFile">The project file.</param>
 /// <param name="parameters">The parameters.</param>
 public Project(string projectFile, TurtleParameters parameters)
     : this(projectFile, Path.GetFileNameWithoutExtension(projectFile), parameters)
 {
 }
예제 #4
0
 public Solution(string projectFile, string targetNames, IEnumerable properties, IEnumerable items, TurtleParameters parameters)
     : base(projectFile, targetNames, properties, items, parameters)
 {
     ProjectType = "Solution";
 }