Example #1
0
 public void Pack(string packagePath, string packedPackagePath, bool skipPdb, bool overwrite)
 {
     CheckPackArgument(packagePath, packedPackagePath);
     _fileSystem.CheckOrDeleteExistsFile(packedPackagePath, overwrite);
     _workingDirectoriesProvider.CreateTempDirectory(tempPath => {
         _packageUtilities.CopyPackageElements(packagePath, tempPath, overwrite);
         var files = GetAllFiles(tempPath, skipPdb);
         _compressionUtilities.PackToGZip(files, tempPath, packedPackagePath);
     });
 }