GetApplicationPath() public static method

public static GetApplicationPath ( ) : string
return string
Esempio n. 1
0
        public static AssemblyPackageInfo CreateFor(Assembly assembly)
        {
            var package  = new AssemblyPackageInfo(assembly);
            var exploder = FubuMvcPackageFacility.GetPackageExploder(new FileSystem());

            exploder.ExplodeAssembly(FubuMvcPackageFacility.GetApplicationPath(), assembly, package.Files);

            return(package);
        }
Esempio n. 2
0
        public IEnumerable <IPackageInfo> Load(IPackageLog log)
        {
            var applicationDirectory = FubuMvcPackageFacility.GetApplicationPath();

            //this finds all of the bottles in <applicationDirectory>/bin/packages
            //then calls load from folder on each exploded zip
            return(_exploder.ExplodeAllZipsAndReturnPackageDirectories(applicationDirectory, log)
                   .Select(dir => _reader.LoadFromFolder(dir)));
        }
        public IEnumerable <IPackageInfo> Load(IPackageLog log)
        {
            var assemblies = _assemblyFinder.FindAssemblies(FubuMvcPackageFacility.GetApplicationPath());

            return(assemblies.Select(fileName =>
            {
                return AssemblyPackageInfo.For(fileName);
            }));
        }
Esempio n. 4
0
        public IEnumerable <IPackageInfo> Load()
        {
            var applicationDirectory = FubuMvcPackageFacility.GetApplicationPath();

            return(_exploder.ExplodeAllZipsAndReturnPackageDirectories(applicationDirectory).Select(dir => _reader.LoadFromFolder(dir)));
        }
Esempio n. 5
0
        public IEnumerable <IPackageInfo> Load()
        {
            var assemblies = _assemblyFinder.FindAssemblies(FubuMvcPackageFacility.GetApplicationPath());

            return(assemblies.Select(assembly => AssemblyPackageInfo.CreateFor(Assembly.Load(assembly)).As <IPackageInfo>()));
        }