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); }