Beispiel #1
0
        public RemoteNuget(IPackage package)
        {
            Name        = package.Id;
            Version     = package.Version;
            _downloader = new RemotePackageDownloader(package);

            _dependencies = new Lazy <IEnumerable <Dependency> >(package.ImmediateDependencies);
        }
Beispiel #2
0
        public RemoteNuget(IPackage package)
        {
            Name = package.Id;
            Version = package.Version;
            _downloader = new RemotePackageDownloader(package);

            _dependencies = new Lazy<IEnumerable<Dependency>>(package.ImmediateDependencies);
        }
Beispiel #3
0
        public RemoteNuget(string name, string version, string url, INugetFeed feed)
        {
            Name        = name;
            Version     = SemanticVersion.Parse(version);
            _downloader = new UrlNugetDownloader(url);

            _dependencies = new Lazy <IEnumerable <Dependency> >(() => feed.Repository.FindPackage(Name, Version).ImmediateDependencies());
        }
Beispiel #4
0
        public RemoteNuget(string name, string version, string url, INugetFeed feed)
        {
            Name = name;
            Version = SemanticVersion.Parse(version);
            _downloader = new UrlNugetDownloader(url);

            _dependencies = new Lazy<IEnumerable<Dependency>>(() => feed.Repository.FindPackage(Name, Version).ImmediateDependencies());
        }