public bool GenerateForCurrentProject()
        {
            return(_ideExplorer.ActiveProject.Match(
                       c =>
            {
                var root = _ideExplorer.ActiveSolution.Match(
                    d => d.Path,
                    () => c.Path
                    );

                return _generator.Generate(new[] { c }, root);
            },
                       () => false
                       ));
        }
Example #2
0
        public void Run()
        {
            if (!canRun)
            {
                ShowMessage(Messages.Help);
                return;
            }

            if (ProcessSwitches() == false)
            {
                return;
            }

            ShowMessage(Messages.Splash);

            string[] assemblies = GetAssembliesFromArgs(arguments);
            string[] xmls       = GetXmlsFromArgs(arguments, assemblies);

            if (VerifyArguments(assemblies, xmls))
            {
                ShowMessage(Messages.Start);

                documentationGenerator.SetAssemblies(assemblies);
                documentationGenerator.SetXmlFiles(xmls);
                documentationGenerator.Generate();

                ShowMessage(Messages.Done);
            }
        }
        public bool GenerateForCurrentProject()
        {
            return(_ide.CurrentProject.Match(
                       c =>
            {
                var solution = _ide.CurrentSolution;
                var root = solution.Match(
                    d => d.Path,
                    () => c.Path
                    );

                return _generator.Generate(new[] { c }, root);
            },
                       () => false
                       ));
        }