コード例 #1
0
        public void CreatePackage(CreateBottleInput input, PackageManifest manifest)
        {
            var binFolder = _fileSystem.FindBinaryDirectory(input.PackageFolder, input.TargetFlag);

            var assemblies = _assemblyFinder.FindAssemblies(binFolder, manifest.Assemblies);

            if (assemblies.Success)
            {
                writeZipFile(input, manifest, assemblies);
                return;
            }

            _logger.WriteAssembliesNotFound(assemblies, manifest, input, binFolder);
        }
コード例 #2
0
        public void CreatePackage(CreatePackageInput input, PackageManifest manifest)
        {
            var binFolder   = Path.Combine(input.PackageFolder, "bin");
            var debugFolder = Path.Combine(binFolder, "debug");

            if (Directory.Exists(debugFolder))
            {
                binFolder = debugFolder;
            }


            var assemblies = _assemblyFinder.FindAssemblies(binFolder, manifest.AssemblyNames);

            if (assemblies.Success)
            {
                writeZipFile(input, manifest, assemblies);
            }
            else
            {
                _logger.WriteAssembliesNotFound(assemblies, manifest, input);
            }
        }