コード例 #1
0
        protected override IPackageManager CreatePackageManager(IFileSystem packagesFolderFileSystem)//,bool useSideBySidePaths, bool checkDowngrade = true)
        {
            var sourceRepository = GetRepository();
            var pathResolver     = new CustomPackagePathResolver(packagesFolderFileSystem, true)
            {
                OverlayDirectory = OverlayPackageDirectory
            };

            return(new PackageManager(sourceRepository, pathResolver, packagesFolderFileSystem, new LocalPackageRepository(pathResolver, packagesFolderFileSystem))
            {
                Logger = base.Console
            });
        }
コード例 #2
0
 protected override IPackageManager CreatePackageManager(IFileSystem packagesFolderFileSystem) {
     var sourceRepository = GetRepository();
     var pathResolver = new CustomPackagePathResolver(packagesFolderFileSystem, true) {
         OverlayDirectory = OverlayPackageDirectory
     };
     return new PackageManager(sourceRepository, pathResolver, packagesFolderFileSystem, new LocalPackageRepository(pathResolver, packagesFolderFileSystem)) { Logger = base.Console };
 }