internal void ExportManifest(string fullpath)
{
if (File.Exists(fullpath)) {
bool confirmed = UIServices.Confirm(
String.Format(CultureInfo.CurrentCulture, Resources.ConfirmToReplaceFile, fullpath)
);
if (!confirmed) {
return;
}
}
using (Stream fileStream = File.Create(fullpath)) {
Manifest manifest = Manifest.Create(PackageMetadata);
manifest.Save(fileStream);
}
}