Example #1
0
        public bool Build(IEnumerable <string> projects)
        {
            bool state = true;

            if (!SolutionStateHandler.IsDirty)
            {
                return(true);
            }
            prepareOutputPath();
            foreach (var project in projects)
            {
                if (project == null)
                {
                    continue;
                }
                _application.Solution.SolutionBuild.BuildProject(
                    getProjectConfiguration(project),
                    project,
                    true);
                state = _application.Solution.SolutionBuild.LastBuildInfo == 0;
                if (!state)
                {
                    break;
                }
            }
            if (state)
            {
                SolutionStateHandler.Reset();
            }
            return(state);
        }
Example #2
0
        public bool Build()
        {
            if (!SolutionStateHandler.IsDirty)
            {
                return(true);
            }
            prepareOutputPath();
            _notify(new RunStartedMessage(new[] { new ChangedFile(Path.GetFileName(_application.Solution.FullName)) }));
            _application.Solution.SolutionBuild.Build(true);
            var state = _application.Solution.SolutionBuild.LastBuildInfo == 0;

            if (state)
            {
                SolutionStateHandler.Reset();
            }

            return(state);
        }