示例#1
0
        public IEnumerable <string> FindAssemblies(string applicationDirectory)
        {
            var assemblyNames = new FileSet {
                Include = "*.dll", DeepSearch = false
            };
            var fileSystem = new FileSystem();

            return(FubuMvcPackageFacility
                   .GetPackageDirectories()
                   .SelectMany(dir => fileSystem.FindFiles(dir, assemblyNames)));
        }
示例#2
0
        public IEnumerable <IPackageInfo> Load(IPackageLog log)
        {
            var exploder = BottleExploder.GetPackageExploder(log);
            var reader   = new BottleManifestReader(new FileSystem(), GetContentFolderForPackage);

            return(FubuMvcPackageFacility.GetPackageDirectories().SelectMany(dir =>
            {
                return exploder.ExplodeDirectory(new ExplodeDirectory()
                {
                    DestinationDirectory = FubuMvcPackageFacility.GetExplodedPackagesDirectory(),
                    BottleDirectory = dir,
                    Log = log
                });
            }).Select(dir => reader.LoadFromFolder(dir)));
        }
示例#3
0
 private static IEnumerable <string> findPackageFolders(string applicationDirectory)
 {
     FubuMvcPackageFacility.PhysicalRootPath = applicationDirectory;
     return(FubuMvcPackageFacility.GetPackageDirectories());
 }
示例#4
0
 public FubuMvcZipFilePackageLoader()
     : base(FubuMvcPackageFacility.GetExplodedPackagesDirectory(), FubuMvcPackageFacility.GetPackageDirectories()
            )
 {
 }