Example #1
0
        public ResolvedSolution(Solution solution, ConfigurationContext context)
        {
            this.Solution = solution;
            this.Context  = context;

            foreach (var project in this.Solution.Projects)
            {
                var configuredTarget = new ConfiguredTarget(project);
                this.Solution.PreConfigure(configuredTarget, this.Context);
                project.Configure(configuredTarget, this.Context);
                this.Solution.PostConfigure(configuredTarget, this.Context);

                var resolvedTarget = new ResolvedTarget(this, configuredTarget);
                this.m_Targets.Add(resolvedTarget);
            }

            this.Resolve();
        }
Example #2
0
 public abstract void Configure(ConfiguredTarget target, ConfigurationContext configuration);
Example #3
0
 /// <summary>
 /// Create new instance of resolved target.
 /// </summary>
 /// <param name="target">A target to resolve.</param>
 public ResolvedTarget(ResolvedSolution solution, ConfiguredTarget target)
 {
     this.Solution = solution;
     this.Target   = target;
 }