Пример #1
0
        private static PackageManifest createDefaultManifest(string packageDirectory)
        {
            var manifest = PackageManifest.DefaultModuleManifest();

            manifest.AddAssembly(LinkCommand.GuessAssemblyNameForFolder(packageDirectory, new FileSystem()));
            manifest.Name = Path.GetFileName(packageDirectory);
            return(manifest);
        }
Пример #2
0
        private void createNewManifest(AssemblyPackageInput input)
        {
            var filename = input.RootFolder.AppendPath(PackageManifest.FILE);

            if (fileSystem.FileExists(filename))
            {
                Console.WriteLine("File already exists at " + filename);
            }
            else
            {
                Console.WriteLine("Writing new package manifest to " + filename);
                var manifest = PackageManifest.DefaultModuleManifest();
                fileSystem.WriteObjectToFile(filename, manifest);
            }

            Console.WriteLine("Adding an embedded resource for '{0}' to {1}", PackageManifest.FILE, input.ProjFileFlag);
            attachZipFileToProjectFile(input, PackageManifest.FILE);


            Console.WriteLine("Use 'bottles open-manifest {0}' to open and edit the PackageManifest", input.RootFolder);
        }