コード例 #1
0
            public SolutionBuildPattern(ISet <EquatableEdge <IBuilder> > graph, MSBuildRunner msbuildRunner, SlnBuilder slnBuilder)
            {
                this.msbuildRunner = msbuildRunner;
                this.slnBuilder    = slnBuilder;

                root = new Lazy <IBuilder>(() => FollowMergingSources(graph, msbuildRunner));
            }
コード例 #2
0
 /// <summary>
 /// Constructs the builder
 /// </summary>
 /// <param name="slnBuilder">Sub task building the solution file, used as a dependency</param>
 /// <param name="slnPath">Path of the generated solution file</param>
 /// <param name="targetRoot">Target directory</param>
 /// <param name="msbuild">The MSBuild implementation to use</param>
 public MSBuildRunner(SlnBuilder slnBuilder, TargetRelativePath slnPath,
                      [TargetRoot] IFileSystemDirectory targetRoot, IMSBuild msbuild)
 {
     this.slnBuilder = slnBuilder;
     this.slnPath    = slnPath;
     this.targetRoot = targetRoot;
     this.msbuild    = msbuild;
 }
コード例 #3
0
 /// <summary>
 /// Constructs the builder
 /// </summary>
 /// <param name="slnBuilder">Sub task building the solution file, used as a dependency</param>
 /// <param name="slnPath">Path of the generated solution file</param>
 /// <param name="version">MSBuild version to use</param>
 /// <param name="targetRoot">Target directory</param>
 /// <param name="msbuildFactory">Factory to get the MSBuild implementation to use</param>
 public MSBuildRunner(SlnBuilder slnBuilder, TargetRelativePath slnPath, MSBuildVersion version,
                      [TargetRoot] IFileSystemDirectory targetRoot, IMSBuildFactory msbuildFactory)
 {
     this.slnBuilder = slnBuilder;
     this.slnPath    = slnPath;
     this.targetRoot = targetRoot;
     msbuild         = msbuildFactory.CreateMSBuild(version);
 }
コード例 #4
0
        private MSBuildRunner BuildSolution(IBuildContext context, SlnBuilder slnBuilder)
        {
            // Building the solution
            var msbuild = msBuildRunnerFactory.CreateMSBuildRunner(slnBuilder,
                                                                   new TargetRelativePath(String.Empty, slnBuilder.Uid + ".sln"));

            msbuild.AddToContext(context);
            return(msbuild);
        }
コード例 #5
0
        private MSBuildRunner BuildSolution(SlnBuilder slnBuilder)
        {
            // Building the solution
            MSBuildParameters msbuildParams;

            if (suite.HasParameters("msbuild"))
            {
                msbuildParams = suite.GetParameters <MSBuildParameters>("msbuild");
            }
            else
            {
                msbuildParams = new MSBuildParameters();
            }

            var msbuild = msBuildRunnerFactory.CreateMSBuildRunner(
                slnBuilder,
                new TargetRelativePath(String.Empty, slnBuilder.Uid + ".sln"),
                msbuildParams.Version);

            return(msbuild);
        }
コード例 #6
0
 public SolutionBuildContext(IInSolutionReferenceBuilderFactory inSolutionReferenceBuilderFactory, IBuildContext baseContext, SlnBuilder solutionBuilder)
 {
     this.baseContext     = baseContext;
     this.solutionBuilder = solutionBuilder;
     this.inSolutionReferenceBuilderFactory = inSolutionReferenceBuilderFactory;
 }