private void BuildProject(string filePath)
        {
            if (!File.Exists(filePath))
            {
                return;
            }

            DisplayBuild(null);
            this.projectFilePath = filePath;
            SettingsService.AddRecentProject(projectFilePath);
            UpdateRecentItemsMenu();
            Title = DefaultTitle + " - " + projectFilePath;

            string customArguments  = SettingsService.GetCustomArguments(filePath);
            var    parametersScreen = new BuildParametersScreen();

            parametersScreen.PrefixArguments  = HostedBuild.GetPrefixArguments(filePath);
            parametersScreen.MSBuildArguments = customArguments;
            parametersScreen.PostfixArguments = HostedBuild.GetPostfixArguments();
            parametersScreen.BuildRequested  += () =>
            {
                BuildCore(projectFilePath, parametersScreen.MSBuildArguments);
                SettingsService.SaveCustomArguments(filePath, parametersScreen.MSBuildArguments);
            };
            parametersScreen.CancelRequested += () =>
            {
                DisplayWelcomeScreen();
            };
            SetContent(parametersScreen);
        }
        private void BuildProject(string filePath)
        {
            if (!File.Exists(filePath))
            {
                return;
            }

            DisplayBuild(null);
            this.projectFilePath = filePath;
            SettingsService.AddRecentProject(projectFilePath);
            UpdateRecentItemsMenu();
            Title = projectFilePath + " - " + DefaultTitle;

            string customArguments  = SettingsService.GetCustomArguments(filePath);
            var    parametersScreen = new BuildParametersScreen();

            //parametersScreen.BrowseForMSBuild += async () => await BrowseForMSBuildExe();
            parametersScreen.PrefixArguments  = Utilities.QuoteIfNeeded(filePath);
            parametersScreen.MSBuildArguments = customArguments;
            parametersScreen.PostfixArguments = HostedBuild.GetPostfixArguments();
            parametersScreen.BuildRequested  += () =>
            {
                parametersScreen.SaveSelectedMSBuild();
                SettingsService.SaveCustomArguments(filePath, parametersScreen.MSBuildArguments);
                BuildCore(projectFilePath, parametersScreen.MSBuildArguments);
            };
            parametersScreen.CancelRequested += () =>
            {
                DisplayWelcomeScreen();
            };
            SetContent(parametersScreen);
        }
        private void BuildProject(string filePath)
        {
            if (!File.Exists(filePath))
            {
                return;
            }

            DisplayBuild(null);
            this.projectFilePath = filePath;
            SettingsService.AddRecentProject(projectFilePath);
            UpdateRecentItemsMenu();
            Title = DefaultTitle + " - " + projectFilePath;

            string customArguments = SettingsService.GetCustomArguments(filePath);
            var parametersScreen = new BuildParametersScreen();
            parametersScreen.PrefixArguments = HostedBuild.GetPrefixArguments(filePath);
            parametersScreen.MSBuildArguments = customArguments;
            parametersScreen.PostfixArguments = HostedBuild.GetPostfixArguments();
            parametersScreen.BuildRequested += () =>
            {
                BuildCore(projectFilePath, parametersScreen.MSBuildArguments);
                SettingsService.SaveCustomArguments(filePath, parametersScreen.MSBuildArguments);
            };
            parametersScreen.CancelRequested += () =>
            {
                DisplayWelcomeScreen();
            };
            SetContent(parametersScreen);
        }