static void Main() { string assemFile = @"..\..\..\ILUnMergeTest\bin\Debug\MBUnitTests.exe"; RenderProjectFiles rpf = new RenderProjectFiles(); rpf.AssemblyFileName = assemFile; rpf.SourceDirectory = @"..\..\..\ILUnMergeTest"; rpf.OutputDirectory = "Projects"; rpf.NameHint = "mbuTests"; rpf.Execute(); }
static void Main() { string assemFile = @"..\..\..\ILUnMergeTest\bin\Debug\MBUnitTests.exe"; RenderProjectFiles rpf = new RenderProjectFiles(); rpf.AssemblyFileName = assemFile; rpf.SourceDirectory = @"..\..\..\ILUnMergeTest"; rpf.OutputDirectory = "Projects"; rpf.NameHint = "mbuTests"; rpf.Execute(); }
private void Form1_Load(object sender, EventArgs e) { string output; dcd.AssemblyFile = @"..\..\..\MBUnitTests\bin\Debug\MBUnitTests.exe"; dcd.IgnoreOutsideRefs = false; dcd.Execute(); TypeDependencyGraph tdg = new TypeDependencyGraph(false); tdg.LoadClassDependencies(dcd, true); output = RenderAnalysisGraph(tdg, imageType, "tdg"); // output = RenderAnalysisGraph(tdg, imageType, "NamespaceOutboundG"); ////CondensedTypeGraph cond_CompNS_CondG = tdg. //TypeDependencyGraph Analysistdg; //Analysistdg = tdg.TypeDepAnalysis(new List<TypeReference>()); //RenderAnalysisGraph(Analysistdg, imageType, "Analysistdg"); //return; ////output = RenderCondGraph(cond_CompNS_CondG, imageType, "analysistNew"); //return; CondensedTypeGraph condG = tdg.CondenseGraph(); output = RenderCondGraph(condG, imageType, "condensedGraph"); condG.CompactNS(true); output = RenderCondGraph(condG, imageType, "compactNS"); foreach (CondensedVertex v in condG.Vertices) { Debug.WriteLine(v.ContainedTypes.Count.ToString()); } RenderProjectFiles rpf = new RenderProjectFiles(); //rpf.PDBDataFile = @"..\..\..\MBUnitTests\bin\Debug\MBUnitTests.pdb.xml"; GeneratePDBXml(rpf); rpf.Graph = condG; rpf.OutputDirectory = "Projects"; rpf.NameHint = "mbuTests"; rpf.Execute(); //CondensedTypeGraph NScompressed = condG.CompressNamespaces(); //CondensedTypeGraph NScompressedandCondensed = NScompressed.CondenseGraph(); //List<TypeReference> analysisList = cond_CompNS_CondG.FindBigestAssembly().ContainedTypes; // Analysistdg = tdg.TypeDepAnalysis(analysisList); //output = RenderAnalysisGraph(tdg, imageType, "analisisRemoved"); //output = RenderCondGraph(NScompressedandCondensed, imageType, "NS2"); //output = RenderCondGraph(condG, imageType, "Cond"); return; //CondensedTypeGraph ccc = tdg.CompressGraph(); //CondensedTypeGraph cccNS = ccc.CompressNamespaces(); //= cccNS.CompressGraph(); //Debug.WriteLine(ccc.VerticesCount.ToString()); //Debug.WriteLine(tdg.VerticesCount.ToString()); //Debug.WriteLine(ccc.EdgesCount.ToString()); //pictureBox1.Load(output); //// return; //Debug.WriteLine("Render full graph"); //return; //output = RenderFullGraph(tdg, imageType); //pictureBox3.Load(output); }
private void Form1_Load(object sender, EventArgs e) { string output; dcd.AssemblyFile = @"..\..\..\MBUnitTests\bin\Debug\MBUnitTests.exe"; dcd.IgnoreOutsideRefs = false; dcd.Execute(); TypeDependencyGraph tdg = new TypeDependencyGraph(false); tdg.LoadClassDependencies(dcd, true); output = RenderAnalysisGraph(tdg, imageType, "tdg"); // output = RenderAnalysisGraph(tdg, imageType, "NamespaceOutboundG"); ////CondensedTypeGraph cond_CompNS_CondG = tdg. //TypeDependencyGraph Analysistdg; //Analysistdg = tdg.TypeDepAnalysis(new List<TypeReference>()); //RenderAnalysisGraph(Analysistdg, imageType, "Analysistdg"); //return; ////output = RenderCondGraph(cond_CompNS_CondG, imageType, "analysistNew"); //return; CondensedTypeGraph condG = tdg.CondenseGraph(); output = RenderCondGraph(condG, imageType, "condensedGraph"); condG.CompactNS(true); output = RenderCondGraph(condG, imageType, "compactNS"); foreach (CondensedVertex v in condG.Vertices) { Debug.WriteLine(v.ContainedTypes.Count.ToString()); } RenderProjectFiles rpf = new RenderProjectFiles(); //rpf.PDBDataFile = @"..\..\..\MBUnitTests\bin\Debug\MBUnitTests.pdb.xml"; GeneratePDBXml(rpf); rpf.Graph = condG; rpf.OutputDirectory = "Projects"; rpf.NameHint = "mbuTests"; rpf.Execute(); //CondensedTypeGraph NScompressed = condG.CompressNamespaces(); //CondensedTypeGraph NScompressedandCondensed = NScompressed.CondenseGraph(); //List<TypeReference> analysisList = cond_CompNS_CondG.FindBigestAssembly().ContainedTypes; // Analysistdg = tdg.TypeDepAnalysis(analysisList); //output = RenderAnalysisGraph(tdg, imageType, "analisisRemoved"); //output = RenderCondGraph(NScompressedandCondensed, imageType, "NS2"); //output = RenderCondGraph(condG, imageType, "Cond"); return; //CondensedTypeGraph ccc = tdg.CompressGraph(); //CondensedTypeGraph cccNS = ccc.CompressNamespaces(); //= cccNS.CompressGraph(); //Debug.WriteLine(ccc.VerticesCount.ToString()); //Debug.WriteLine(tdg.VerticesCount.ToString()); //Debug.WriteLine(ccc.EdgesCount.ToString()); //pictureBox1.Load(output); //// return; //Debug.WriteLine("Render full graph"); //return; //output = RenderFullGraph(tdg, imageType); //pictureBox3.Load(output); }