本文整理匯總了C#中ripple.Model.Solution.PackagesFolder方法的典型用法代碼示例。如果您正苦於以下問題:C# Solution.PackagesFolder方法的具體用法?C# Solution.PackagesFolder怎麽用?C# Solution.PackagesFolder使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ripple.Model.Solution
的用法示例。
在下文中一共展示了Solution.PackagesFolder方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: NugetService
public NugetService(Solution solution)
{
//_defaultPackageSource = new PackageSource(NuGetConstants.DefaultFeedUrl);
var factory = new PackageRepositoryFactory();
_remoteRepository = factory.CreateRepository(GalleryUrl);
_localRepository = factory.CreateRepository(solution.PackagesFolder());
_sourceRepository = new AggregateRepository(new[] { _remoteRepository, _localRepository });
_fileSystem = new PhysicalFileSystem(solution.PackagesFolder());
_pathResolver = new DefaultPackagePathResolver(_fileSystem);
_console = new Console();
_packageManager = new PackageManager(_sourceRepository, _pathResolver, _fileSystem, _localRepository){
Logger = _console
};
_packages = new Cache<NugetDependency, IPackage>(dep =>
{
Install(dep);
return _sourceRepository.FindPackage(dep.Name, dep.Version);
});
}
示例2: ReferenceAttacher
public ReferenceAttacher(Solution solution)
{
_solution = solution;
_repository = new LocalPackageRepository(_solution.PackagesFolder());
_packages = new Cache<string, IPackage>(name => _repository.FindPackage(name));
}
示例3: ReferenceAttacher
public ReferenceAttacher(Solution solution)
{
_solution = solution;
_repository = new LocalPackageRepository(_solution.PackagesFolder());
_packages = new Cache<string, IPackage>(name => _repository.FindPackage(name));
_toolsVersionMatch["4.0"] = "net40";
}
示例4: NugetService
public NugetService(Solution solution, IEnumerable<string> remoteFeeds)
{
var repoBuilder = new PackageRepositoryBuilder();
_remoteRepository = repoBuilder.BuildRemote(remoteFeeds);
_localRepository = repoBuilder.BuildLocal(solution.PackagesFolder());
_sourceRepository = repoBuilder.BuildSource(_remoteRepository, _localRepository);
_fileSystem = new PhysicalFileSystem(solution.PackagesFolder());
_pathResolver = new DefaultPackagePathResolver(_fileSystem);
_console = new Console();
_packageManager = new PackageManager(_sourceRepository, _pathResolver, _fileSystem, _localRepository){
Logger = _console
};
_packages = new Cache<NugetDependency, IPackage>(dep =>
{
Install(dep);
return _sourceRepository.FindPackage(dep.Name, new SemanticVersion(dep.Version));
});
}