/// <summary>
        /// Updates the output file paths for candle and light when the relative file path has changed.
        /// </summary>
        protected override void UpdateOutputFiles()
        {
            WixBuildSettings buildSettings = this.Project.BuildSettings;

            // Change the output paths for candle and light
            string absoluteOutputDirectory       = PackageUtility.CanonicalizeDirectoryPath(Path.Combine(this.Project.RootDirectory, this.RelativeOutputDirectory));
            string absoluteIntermediateDirectory = PackageUtility.CanonicalizeDirectoryPath(Path.Combine(this.Project.RootDirectory, this.RelativeIntermediateDirectory));
            string lightFileName = buildSettings.OutputName + buildSettings.OutputExtension;

            this.CandleSettings.AbsoluteOutputDirectory = absoluteIntermediateDirectory;
            this.LightSettings.AbsoluteOutputFilePath   = Path.Combine(absoluteOutputDirectory, lightFileName);
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CandleSettings"/> class.
 /// </summary>
 /// <param name="absoluteOutputDirectory">The absolute path to the output directory.</param>
 public CandleSettings(string absoluteOutputDirectory)
 {
     Tracer.VerifyStringArgument(absoluteOutputDirectory, "absoluteOutputDirectory");
     this.absoluteOutputDirectory = PackageUtility.CanonicalizeDirectoryPath(absoluteOutputDirectory);
 }