Пример #1
0
        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.PrefixArguments  = filePath.QuoteIfNeeded();
            parametersScreen.MSBuildArguments = customArguments;
            parametersScreen.PostfixArguments = HostedBuild.GetPostfixArguments();
            parametersScreen.BuildRequested  += () =>
            {
                parametersScreen.SaveSelectedMSBuild();
                SettingsService.SaveCustomArguments(filePath, parametersScreen.MSBuildArguments);
                BuildCore(projectFilePath, parametersScreen.MSBuildArguments);
            };
            parametersScreen.CancelRequested += () =>
            {
                parametersScreen.SaveSelectedMSBuild();
                DisplayWelcomeScreen();
            };
            SetContent(parametersScreen);
        }
Пример #2
0
 private void RebuildProjectOrSolution()
 {
     if (!string.IsNullOrEmpty(projectFilePath))
     {
         var args = SettingsService.GetCustomArguments(projectFilePath);
         BuildCore(projectFilePath, args);
     }
 }
Пример #3
0
        private void RebuildProjectOrSolution()
        {
            if (!string.IsNullOrEmpty(projectFilePath))
            {
                var args = SettingsService.GetCustomArguments(projectFilePath);

                string searchText = null;
                if (CurrentBuildControl != null)
                {
                    searchText = CurrentBuildControl.searchLogControl.SearchText;
                }

                BuildCore(projectFilePath, args, searchText);
            }
        }