Пример #1
0
 public ProjectBuilder(string projectPath, IDictionary<string, ProjectNode> cache, string runtimeProfile, ResolveConfig resolveConfig)
 {
     this.cache = cache;
     this.runtimeProfile = runtimeProfile;
     this.resolveConfig = resolveConfig;
     projectFullPath = projectPath;
 }
Пример #2
0
 public ProjectBuilder(string projectPath, IDictionary <string, ProjectNode> cache, string runtimeProfile, ResolveConfig resolveConfig)
 {
     this.cache          = cache;
     this.runtimeProfile = runtimeProfile;
     this.resolveConfig  = resolveConfig;
     projectFullPath     = projectPath;
 }
Пример #3
0
        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);
        }
Пример #4
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     GlobalConfiguration.Configure(WebApiConfig.Register);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     ResolveConfig.RegisterServices();
 }
Пример #5
0
        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);
        }
Пример #6
0
        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);
        }
Пример #7
0
 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);
     }
 }
Пример #8
0
 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);
     }
 }