public ProjectBuilder(string projectPath, IDictionary<string, ProjectNode> cache, string runtimeProfile, ResolveConfig resolveConfig) { this.cache = cache; this.runtimeProfile = runtimeProfile; this.resolveConfig = resolveConfig; projectFullPath = projectPath; }
public ProjectBuilder(string projectPath, IDictionary <string, ProjectNode> cache, string runtimeProfile, ResolveConfig resolveConfig) { this.cache = cache; this.runtimeProfile = runtimeProfile; this.resolveConfig = resolveConfig; projectFullPath = projectPath; }
public override bool Execute() { var config = new ResolveConfig(ConfigFile.ItemSpec, RootDir.ItemSpec); var copyLocalDetector = new CopyLocalDetector(DeployHints.Select(dh => dh.ItemSpec).ToArray(), config); ProjectCopyLocals = copyLocalDetector.Dectect().Select(CreateProjectCopyLocal).ToArray(); return(true); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); ResolveConfig.RegisterServices(); }
public override bool Execute() { var resolveConfig = new ResolveConfig(ConfigFile.ItemSpec, RootDir.ItemSpec); var runtimeProfile = RuntimeProfile == null ? String.Empty : RuntimeProfile.ItemSpec; var msBuildPatch = new MSBuildPatcher(resolveConfig).Resolve(InputProjects.Select(t => t.GetMetadata("FullPath")).ToArray(), runtimeProfile); Copies = msBuildPatch.CopyItemSets.Select(CreateCopyTaskItem).ToArray(); OutProjects = msBuildPatch.CompileProjects.Select(CreateProjectItem).ToArray(); return(true); }
public override bool Execute() { var excludes = (ExcludeNodes ?? new ITaskItem[0]).Select(t => t.GetMetadata("FullPath")).ToArray(); var resolveConfig = new ResolveConfig(ConfigFile.ItemSpec, RootDir.ItemSpec); var inputNodePaths = InputProjects.Select(t => t.GetMetadata("FullPath")).ToArray(); var endNodePaths = (EndNodes ?? new ITaskItem[0]).Select(n => n.GetMetadata("FullPath")).ToArray(); var runtimeProfile = RuntimeProfile == null ? string.Empty : RuntimeProfile.ItemSpec; var result = new DependencyResolver(resolveConfig, excludes, Reverse).Resolve(inputNodePaths, endNodePaths, runtimeProfile); Dependences = result.Select(CreateTaskItem).ToArray(); return(true); }
public ProjectExtractor(string projectPath, ResolveConfig config) { this.config = config; try { var pathDocument = new XPathDocument(projectPath); navigator = pathDocument.CreateNavigator(); if (navigator.NameTable != null) ns = new XmlNamespaceManager(navigator.NameTable); ns.AddNamespace("n", "http://schemas.microsoft.com/developer/msbuild/2003"); } catch (Exception exception) { throw new Exception(projectPath, exception); } }
public ProjectExtractor(string projectPath, ResolveConfig config) { this.config = config; try { var pathDocument = new XPathDocument(projectPath); navigator = pathDocument.CreateNavigator(); if (navigator.NameTable != null) { ns = new XmlNamespaceManager(navigator.NameTable); } ns.AddNamespace("n", "http://schemas.microsoft.com/developer/msbuild/2003"); } catch (Exception exception) { throw new Exception(projectPath, exception); } }