public SolutionBuildPattern(ISet <EquatableEdge <IBuilder> > graph, MSBuildRunner msbuildRunner, SlnBuilder slnBuilder) { this.msbuildRunner = msbuildRunner; this.slnBuilder = slnBuilder; root = new Lazy <IBuilder>(() => FollowMergingSources(graph, msbuildRunner)); }
/// <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; }
/// <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); }
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); }
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); }
public SolutionBuildContext(IInSolutionReferenceBuilderFactory inSolutionReferenceBuilderFactory, IBuildContext baseContext, SlnBuilder solutionBuilder) { this.baseContext = baseContext; this.solutionBuilder = solutionBuilder; this.inSolutionReferenceBuilderFactory = inSolutionReferenceBuilderFactory; }