Ejemplo n.º 1
0
        public Feed Branch()
        {
            var feed = (Feed)MemberwiseClone();

            feed.Url = FeedRegistry.BranchUrl(feed);
            return(feed);
        }
Ejemplo n.º 2
0
        private INugetFeed buildFileSystemFeed(Feed feed)
        {
            var directory = FeedRegistry.BranchUrl(feed);

            directory = directory.Replace("file://", "");
            directory = directory.ToFullPath();

            if (feed.Mode == UpdateMode.Fixed)
            {
                return(new FileSystemNugetFeed(directory, feed.Stability));
            }

            return(new FloatingFileSystemNugetFeed(directory, feed.Stability));
        }
Ejemplo n.º 3
0
        private void processNuget(IRemoteNuget nuget, Dependency dependency, UpdateMode mode, int depth, SearchLocation location,
                                  List <Dependency> dependencies)
        {
            if (depth != 0)
            {
                var dep         = dependency;
                var markAsFixed = mode == UpdateMode.Fixed || !FeedRegistry.IsFloat(_solution, dependency);

                if (dep.IsFloat() && markAsFixed)
                {
                    dep = new Dependency(nuget.Name, nuget.Version, UpdateMode.Fixed);
                }

                dependencies.Add(dep);
            }

            nuget
            .Dependencies()
            .Each(x => findDependenciesFor(x, mode, depth + 1, location, dependencies));
        }
Ejemplo n.º 4
0
 public INugetFeed GetNugetFeed()
 {
     return(FeedRegistry.FeedFor(this));
 }