Ejemplo n.º 1
0
        public TargetBuilder(CSBuildConfig config, BuildTarget target, string[] properties, string[] targets)
        {
            _config = config;
            _target = target;
            _properties = CSBuildConfig.ToDictionary(properties);
            _namedValues = new Dictionary<string, string>(_properties, StringComparer.OrdinalIgnoreCase);

            foreach (BuildProperty prop in _target.BuildProperties)
                _namedValues[prop.Name] = Environment.ExpandEnvironmentVariables(prop.Value);

            _buildTask = new BuildAll(targets);
        }
        public TargetBuilder(CSBuildConfig config, BuildTarget target, string[] properties, string[] targets)
        {
            _config      = config;
            _target      = target;
            _properties  = CSBuildConfig.ToDictionary(properties);
            _namedValues = new Dictionary <string, string>(_properties, StringComparer.OrdinalIgnoreCase);

            foreach (BuildProperty prop in _target.BuildProperties)
            {
                _namedValues[prop.Name] = Environment.ExpandEnvironmentVariables(prop.Value);
            }

            _buildTask = new BuildAll(targets);
        }