コード例 #1
0
 public void WriteManifest(XmlWriter writer, bool packageFragment)
 {
     Log.StartJob(Util.WRITER_CreatingManifest);
     if (!packageFragment)
     {
         WriteManifestStartElement(writer);
     }
     WritePackageStartElement(writer);
     if (Scripts.Count > 0)
     {
         ScriptComponentWriter scriptWriter = new ScriptComponentWriter(BasePath, Scripts, Package);
         scriptWriter.WriteManifest(writer);
     }
     if (CleanUpFiles.Count > 0)
     {
         CleanupComponentWriter cleanupFileWriter = new CleanupComponentWriter(BasePath, CleanUpFiles);
         cleanupFileWriter.WriteManifest(writer);
     }
     WriteManifestComponent(writer);
     if (Assemblies.Count > 0)
     {
         AssemblyComponentWriter assemblyWriter = new AssemblyComponentWriter(AssemblyPath, Assemblies, Package);
         assemblyWriter.WriteManifest(writer);
     }
     if (AppCodeFiles.Count > 0)
     {
         FileComponentWriter fileWriter = new FileComponentWriter(AppCodePath, AppCodeFiles, Package);
         fileWriter.WriteManifest(writer);
     }
     if (Files.Count > 0)
     {
         WriteFilesToManifest(writer);
     }
     if (Resources.Count > 0)
     {
         ResourceFileComponentWriter fileWriter = new ResourceFileComponentWriter(BasePath, Resources, Package);
         fileWriter.WriteManifest(writer);
     }
     WritePackageEndElement(writer);
     if (!packageFragment)
     {
         WriteManifestEndElement(writer);
     }
     Log.EndJob(Util.WRITER_CreatedManifest);
 }
コード例 #2
0
 public void WriteManifest(XmlWriter writer, bool packageFragment)
 {
     Log.StartJob(Util.WRITER_CreatingManifest);
     if (!packageFragment)
     {
         WriteManifestStartElement(writer);
     }
     WritePackageStartElement(writer);
     if (Scripts.Count > 0)
     {
         ScriptComponentWriter scriptWriter = new ScriptComponentWriter(BasePath, Scripts, Package);
         scriptWriter.WriteManifest(writer);
     }
     if (CleanUpFiles.Count > 0)
     {
         CleanupComponentWriter cleanupFileWriter = new CleanupComponentWriter(BasePath, CleanUpFiles);
         cleanupFileWriter.WriteManifest(writer);
     }
     WriteManifestComponent(writer);
     if (Assemblies.Count > 0)
     {
         AssemblyComponentWriter assemblyWriter = new AssemblyComponentWriter(AssemblyPath, Assemblies, Package);
         assemblyWriter.WriteManifest(writer);
     }
     if (AppCodeFiles.Count > 0)
     {
         FileComponentWriter fileWriter = new FileComponentWriter(AppCodePath, AppCodeFiles, Package);
         fileWriter.WriteManifest(writer);
     }
     if (Files.Count > 0)
     {
         WriteFilesToManifest(writer);
     }
     if (Resources.Count > 0)
     {
         ResourceFileComponentWriter fileWriter = new ResourceFileComponentWriter(BasePath, Resources, Package);
         fileWriter.WriteManifest(writer);
     }
     WritePackageEndElement(writer);
     if (!packageFragment)
     {
         WriteManifestEndElement(writer);
     }
     Log.EndJob(Util.WRITER_CreatedManifest);
 }