/// <summary>
        /// Configures the project for publishing.
        /// </summary>
        /// <param name="project">The project to configure.</param>
        /// <param name="settings">The settings.</param>
        /// <returns>
        /// true, if the configuration was modified; otherwise, false.
        /// </returns>
        private bool ConfigureProject(Project project, ProjectSettings settings)
        {
            if (settings != null)
            {
                var window = new ProjectSettingsWindow(project.Name, settings);

                // show dialog and modify settings
                bool? saveSettings = window.ShowDialog(Globals.GetMainWindowHandle());
                if (saveSettings.Value)
                {
                    settings.Save();

                    // file does NOT exist?
                    if (!settings.Exists())
                    {
                        // add to project
                        string projectDir = project.GetDirectory();
                        string filePath = settings.FilePath;
                        if (filePath.StartsWith(projectDir, StringComparison.OrdinalIgnoreCase))
                        {
                            ProjectItem item = project.ProjectItems.AddFromFile(filePath);
                            Logger.Log(" -> Settings file added to project '{0}'", project.Name);
                        }
                    }

                    return true;
                }
            }

            return false;
        }