Ejemplo n.º 1
0
 public static void AddLicenseAndReleaseNotes(this ICakeContext context, Solution solution, Project project, FilePath packagePath)
 {
     if (!string.IsNullOrEmpty(project.pathsAndFiles.licenseFile))
     {
         var license = context.GetTextOrMdFile(project.pathsAndFiles.licenseFile);
         if (license != "")
         {
             context.AddTextFileToZip(packagePath, license, project.packageName.NoSlashes() + "/License.txt", true);
         }
     }
     if (!string.IsNullOrEmpty(project.pathsAndFiles.releaseNotesFile))
     {
         var releaseNotes = context.GetTextOrMdFile(project.pathsAndFiles.releaseNotesFile);
         if (releaseNotes != "")
         {
             context.AddTextFileToZip(packagePath, releaseNotes, project.packageName.NoSlashes() + "/ReleaseNotes.txt", true);
         }
     }
 }
Ejemplo n.º 2
0
 public static void AddTextFileToZip(this ICakeContext context, FilePath zipFile, string content, string name)
 {
     context.AddTextFileToZip(zipFile, content, name, false);
 }