/// <summary> /// Adds the specified extension to <see cref="WixProject" /> /// </summary> /// <param name="extensionAssembly">The extension assembly.</param> /// <param name="namespacePrefix">The namespace prefix.</param> /// <param name="namespace">The namespace.</param> public void IncludeWixExtension(string extensionAssembly, string namespacePrefix, string @namespace) { if (!this.WixExtensions.Contains(extensionAssembly)) { this.WixExtensions.Add(extensionAssembly); } if (namespacePrefix.IsEmpty()) { var namespaceDeclaration = WixExtension.GetNamespaceDeclaration(namespacePrefix, @namespace); //could use detection of duplicate prefixes if (!this.WixNamespaces.Contains(namespaceDeclaration)) { this.WixNamespaces.Add(namespaceDeclaration); } } }
/// <summary> /// Adds the specified extension to <see cref="WixProject"/> /// </summary> /// <param name="extension">The extension.</param> public void IncludeWixExtension(WixExtension extension) { IncludeWixExtension(extension.Assembly, extension.XmlNamespacePrefix, extension.XmlNamespace); }