private BuildServices setupServices() { var services = new BuildServices(); var setter = new ConventionsSetter(); conventions(setter); setter.SetupServices(services); return(services); }
private async Task <BuildContext> buildAndGetAssembly(BuildServices services, BuildContext context) { try { context = services.ProjectFileChooser.FindProjectFile(context); context = services.ProjectBuilder.BuildProject(context); context = services.ProjectBinaryLoader.LoadAssemblyAndContext(context); } catch (Exception e) { context.Error = e; } return(context); }
internal void SetupServices(BuildServices services) { services.ProjectFileChooser = projectFileChooser ?? new DirectoryProjectFileChooser(); services.ProjectBuilder = projectBuilder ?? new MsBuildProjectBuilder(); services.ProjectBinaryLoader = projectBinaryLoader ?? new AssemblyBinaryLoader(); }