示例#1
0
        public static bool IsSpecPackage(PackageAssets package)
        {
            if (package.PackageName == "application")
            {
                return(false);
            }

            if (package.PackageName == AssemblyPackageInfo.CreateFor(typeof(SpecificationGraph).Assembly).Name)
            {
                return(false);
            }

            return(true);
        }
示例#2
0
        public IEnumerable <IPackageInfo> Load(IPackageLog log)
        {
            var packages = new List <IPackageInfo>();
            //issue??
            var includes = _fileSystem.LoadFromFile <PackageManifest>(_applicationFolder, PackageManifest.FILE);

            packages.AddRange(includes.LinkedFolders.Select(f => LoadFromFolder(Path.Combine(_applicationFolder, f))));
            packages.AddRange(includes.Assemblies.Select(assemblyName =>
            {
                var assembly = Assembly.Load(assemblyName);
                return(AssemblyPackageInfo.CreateFor(assembly));
            }));

            return(packages);
        }
 public void SetUp()
 {
     thePackage = AssemblyPackageInfo.CreateFor(typeof(AssemblyPackageMarker).Assembly);
 }
 public void SetUp()
 {
     assembly = Assembly.GetExecutingAssembly();
     package  = AssemblyPackageInfo.CreateFor(assembly);
 }