Example #1
0
        static void Main(string[] args)
        {
            string solutionPath     = args[0];
            var    workspace        = MSBuildWorkspace.Create();
            var    diagramGenerator = new DiagramGenerator(solutionPath, workspace);

            diagramGenerator.ProcessSolution().Wait();
            diagramGenerator.GenerateDiagramFromRoot();
            Console.ReadKey();
        }
Example #2
0
        static void Main(string[] args)
        {
            const string solutionName      = "DotNetDiagrams";
            const string solutionExtension = ".sln";
            const string solutionFileName  = solutionName + solutionExtension;
            const string rootPath          = @"C:\Workspace\";
            const string solutionPath      = rootPath + solutionName + @"\" + solutionFileName;

            var workspace        = MSBuildWorkspace.Create();
            var diagramGenerator = new DiagramGenerator(solutionPath, workspace);

            diagramGenerator.ProcessSolution().Wait();
            diagramGenerator.GenerateDiagramFromRoot();
            Console.ReadKey();
        }