Source Code Refactoring: Difference between revisions

From OpenPetra Wiki
Jump to navigation Jump to search
(Created page with '== Motivation == A set of cyclic reference errors enforced to run a specific type of source code refactoring. In order to understand this we have a small diagram like this: [[F…')
 
Line 5: Line 5:
[[File:Reference-structure.JPG]]
[[File:Reference-structure.JPG]]


Here the assembly dependencies are shown i.e. which assemblie use which other assembly.
Here the assembly dependencies are shown i.e. which assemblie use which other assembly. The details of this diagram are not so important at this point. Actually it is more important to understand that there exists a dependecy structure and how to handle it.
 
== Tools ==
 
Actually I've used some additional tools
 
# the [http://reflector.red-gate.com/download.aspx?TreatAsUpdate=1 red gate reflector] and
# a [http://reflectoraddins.codeplex.com/wikipage?title=Graph&referringTitle=Home .NET Reflector Add-Ins named Graph]
# this addin need the programm [http://research.microsoft.com/en-us/downloads/f1303e46-965f-401a-87c3-34e1331d32c5/default.aspx Microsoft Glee] which now has become a commercial tool named "Microsoft Automatic Graph Layout (MSAGL)". The cost free version is availiable by refering the link and will work well.
 
Install this tools check out the sources, run "nant generateSolution" and you can load the dlls to investigate the reference structure. On the other side I have the [http://www.sparxsystems.com.au/ Enterprise Architect] and for this program exists an plug in too [http://blog.lieberlieber.com/2009/09/24/rizosuite/ RizoSuite]. But it seems that it needs a higher level of EA.

Revision as of 06:06, 19 May 2011

Motivation

A set of cyclic reference errors enforced to run a specific type of source code refactoring. In order to understand this we have a small diagram like this:

Reference-structure.JPG

Here the assembly dependencies are shown i.e. which assemblie use which other assembly. The details of this diagram are not so important at this point. Actually it is more important to understand that there exists a dependecy structure and how to handle it.

Tools

Actually I've used some additional tools

  1. the red gate reflector and
  2. a .NET Reflector Add-Ins named Graph
  3. this addin need the programm Microsoft Glee which now has become a commercial tool named "Microsoft Automatic Graph Layout (MSAGL)". The cost free version is availiable by refering the link and will work well.

Install this tools check out the sources, run "nant generateSolution" and you can load the dlls to investigate the reference structure. On the other side I have the Enterprise Architect and for this program exists an plug in too RizoSuite. But it seems that it needs a higher level of EA.