コード例 #1
0
ファイル: ProjectBase.cs プロジェクト: RoastBoy/nant
        /// <summary>
        /// Initializes a new instance of the <see cref="ProjectBase" /> class.
        /// </summary>
        protected ProjectBase(XmlElement xmlDefinition, SolutionTask solutionTask, TempFileCollection temporaryFiles, GacCache gacCache, ReferencesResolver referencesResolver, DirectoryInfo outputDir) {
            if (xmlDefinition == null) {
                throw new ArgumentNullException("xmlDefinition");
            }
            if (solutionTask == null) {
                throw new ArgumentNullException("solutionTask");
            }
            if (temporaryFiles == null) {
                throw new ArgumentNullException("temporaryFiles");
            }
            if (gacCache == null) {
                throw new ArgumentNullException("gacCache");
            }
            if (referencesResolver == null) {
                throw new ArgumentNullException("referencesResolver");
            }

            _projectConfigurations = new ConfigurationDictionary();
            _buildConfigurations = new ConfigurationDictionary();
            _extraOutputFiles = CollectionsUtil.CreateCaseInsensitiveHashtable();

            // ensure the specified project is actually supported by this project
            VerifyProjectXml(xmlDefinition);

            _solutionTask = solutionTask;
            _temporaryFiles = temporaryFiles;
            _outputDir = outputDir;
            _gacCache = gacCache;
            _refResolver = referencesResolver;
            _productVersion = DetermineProductVersion(xmlDefinition);
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ProjectBase" /> class.
        /// </summary>
        protected ProjectBase(XmlElement xmlDefinition, SolutionTask solutionTask, TempFileCollection temporaryFiles, GacCache gacCache, ReferencesResolver referencesResolver, DirectoryInfo outputDir)
        {
            if (xmlDefinition == null)
            {
                throw new ArgumentNullException("xmlDefinition");
            }
            if (solutionTask == null)
            {
                throw new ArgumentNullException("solutionTask");
            }
            if (temporaryFiles == null)
            {
                throw new ArgumentNullException("temporaryFiles");
            }
            if (gacCache == null)
            {
                throw new ArgumentNullException("gacCache");
            }
            if (referencesResolver == null)
            {
                throw new ArgumentNullException("referencesResolver");
            }

            _projectConfigurations = new ConfigurationDictionary();
            _buildConfigurations   = new ConfigurationDictionary();
            _extraOutputFiles      = CollectionsUtil.CreateCaseInsensitiveHashtable();

            // ensure the specified project is actually supported by this project
            VerifyProjectXml(xmlDefinition);

            _solutionTask   = solutionTask;
            _temporaryFiles = temporaryFiles;
            _outputDir      = outputDir;
            _gacCache       = gacCache;
            _refResolver    = referencesResolver;
            _productVersion = DetermineProductVersion(xmlDefinition);
        }
コード例 #3
0
 internal ConfigurationDictionaryEnumerator(ConfigurationDictionary enumerable)
 {
     _innerEnumerator = enumerable.InnerHash.GetEnumerator();
 }
コード例 #4
0
 internal ConfigurationDictionaryEnumerator(ConfigurationDictionary enumerable) {
     _innerEnumerator = enumerable.InnerHash.GetEnumerator();
 }