Represents a Wix Extension
コード例 #1
0
        /// <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);
                }
            }
        }
コード例 #2
0
ファイル: WixProject.cs プロジェクト: denis-peshkov/WixSharp
 /// <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);
 }
コード例 #3
0
 /// <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);
 }