예제 #1
0
        public IMonoDevelopPackageManager CreatePackageManager(
            IPackageRepository sourceRepository,
            IDotNetProject project)
        {
            SolutionPackageRepository        solutionPackageRepository       = CreateSolutionPackageRepository(project.ParentSolution);
            IProjectSystem                   projectSystem                   = CreateProjectSystem(project.DotNetProject);
            PackageOperationsResolverFactory packageOperationResolverFactory = new PackageOperationsResolverFactory();

            return(new MonoDevelopPackageManager(
                       sourceRepository,
                       projectSystem,
                       solutionPackageRepository,
                       packageOperationResolverFactory));
        }
 bool IsPackageRestored(PackageReference packageReference)
 {
     return(SolutionPackageRepository.IsRestored(packageReference));
 }
 IEnumerable <PackageReference> GetPackageReferencesForSolution()
 {
     return(SolutionPackageRepository.GetPackageReferences());
 }