예제 #1
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);
        }
예제 #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);
        }
 internal ConfigurationDictionaryEnumerator(ConfigurationDictionary enumerable)
 {
     _innerEnumerator = enumerable.InnerHash.GetEnumerator();
 }
예제 #4
0
 internal ConfigurationDictionaryEnumerator(ConfigurationDictionary enumerable) {
     _innerEnumerator = enumerable.InnerHash.GetEnumerator();
 }