Beispiel #1
0
        public WixDirectoryNode AddSubDirectory(string id, string name)
        {
            var directoryElement = new XElement(WixNames.DirectoryNode, new XAttribute("Id", id), new XAttribute("Name", name));

            Node.AddWithFormatting(directoryElement);

            SourceFile.Save();

            return(SourceFile.AddDirectoryNode(directoryElement));
        }
Beispiel #2
0
        public WixDirectoryNode AddSubdirectory([NotNull] string id, [NotNull] string name)
        {
            Contract.Requires(id != null);
            Contract.Requires(name != null);
            Contract.Ensures(Contract.Result <WixDirectoryNode>() != null);

            var directoryElement = new XElement(WixNames.DirectoryNode, new XAttribute("Id", id), new XAttribute("Name", name));

            Node.AddWithFormatting(directoryElement);

            SourceFile.Save();

            return(SourceFile.AddDirectoryNode(directoryElement));
        }