Пример #1
0
        /// <summary>
        /// Performs a clean by removing all of the wixobj compiler output and the linker output (MSI/MSM/wixlib).
        /// </summary>
        /// <param name="outputPane">The window to output message to.</param>
        /// <returns>true if the build succeeded; otherwise, false.</returns>
        protected override bool CleanInternal(IVsOutputWindowPane outputPane)
        {
            // Tell the user we're starting to clean.
            string message = WixStrings.OutputWindowClean(this.Project.Name, this.ProjectConfiguration.Name);

            Tracer.WriteLineInformation(classType, "CleanInternal", message);
            this.WriteLineToOutputWindow(message);
            this.WriteLineToOutputWindow();

            // Tick once and see if we should continue.
            if (!this.TickBuild())
            {
                return(false);
            }

            // Clean the candle and light output by deleting the wixobj and MSI files.
            string[] sourceFiles = this.GetSourceFiles();
            this.CleanCompileOutput(sourceFiles);
            this.CleanLinkOutput();

            return(true);
        }
Пример #2
0
        //==========================================================================================
        // Methods
        //==========================================================================================

        /// <summary>
        /// Returns a value indicating whether the specified name is a defined string resource name.
        /// </summary>
        /// <param name="name">The resource identifier to check.</param>
        /// <returns>true if the string identifier is defined in our assembly; otherwise, false.</returns>
        public override bool IsStringDefined(string name)
        {
            return(WixStrings.IsValidStringName(name));
        }
 //==========================================================================================
 // Constructors
 //==========================================================================================
 /// <summary>
 /// Initializes a new instance of the <see cref="WixLocalizedDisplayNameAttribute"/> class.
 /// </summary>
 /// <param name="id">The sconce string identifier to get.</param>
 public WixLocalizedDisplayNameAttribute(WixStrings.StringId id)
     : base(id.ToString())
 {
 }
 //==========================================================================================
 // Constructors
 //==========================================================================================
 /// <summary>
 /// Initializes a new instance of the <see cref="WixLocalizedDescriptionAttribute"/> class.
 /// </summary>
 /// <param name="id">The sconce string identifier to get.</param>
 public WixLocalizedDescriptionAttribute(WixStrings.StringId id)
     : base(id.ToString())
 {
 }
 //==========================================================================================
 // Constructors
 //==========================================================================================
 /// <summary>
 /// Initializes a new instance of the <see cref="WixLocalizedCategoryAttribute"/> class.
 /// </summary>
 /// <param name="id">The string identifier to get.</param>
 public WixLocalizedCategoryAttribute(WixStrings.StringId id)
     : base(id.ToString())
 {
 }