Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I quickly navigate through xml (DI) configuration files?
    text
    copied!<p>I'm working on a .net project that uses the <a href="http://springframework.net/" rel="nofollow noreferrer">Spring.NET</a> framework for dependency injection (DI). A typical solution contains several dozens of (small) xml DI configuration files. Navigating through these files isn't as frictionless as it could be.</p> <p>I would like to know more tricks to be able to quickly navigate through the xml object definitions and the corresponding code. Got some you care to share?</p> <p><em>Example scenarios</em></p> <p>For instance, a solution contains the following files:</p> <pre class="lang-xml prettyprint-override"><code>&lt;!-- file1.xml --&gt; &lt;object id="exampleObject" type="Examples.ExampleObject, ExamplesLibrary"&gt; &lt;property name="objectOne" ref="anotherExampleObject"/&gt; &lt;/object&gt; &lt;!-- file2.xml, somewhere in the same solution --&gt; &lt;object id="anotherExampleObject" type="Examples.AnotherExampleObject, ExamplesLibrary"&gt; &lt;property name="Name" value="anotherExampleObject"/&gt; &lt;/object&gt; </code></pre> <p>Assuming you are working in file1.xml, how would you quickly navigate from ...</p> <ul> <li><code>ref="anotherExampleObject"</code> to the object definition in <code>file2.xml</code>?</li> <li><code>type="Examples.ExampleObject, ExamplesLibrary"</code> to the <code>ExampleObject</code> class in <code>Examples.ExampleObject.cs</code></li> </ul> <p><em>Notes</em></p> <p>I'm <a href="https://stackoverflow.com/questions/6064759/spring-codeconfig-vs-xml-configuration">fully aware</a> of the <a href="https://stackoverflow.com/questions/2033004/castle-windsor-or-spring-net-advantages-and-disadvantages">advantages and disadvantages</a> of using XML for configuring a DI container. Let's just accept the fact that I'm required to use xml and that I would like the process to be as friction-less as possible.</p> <p>Answers do not have to be specific to Spring.NET, navigation tricks used for xml configuration in other .NET DI frameworks are appreciated too.</p> <p>Currently I work mostly with VS 2010 with ReSharper 6; feel free to recommend any tool compatible with VS 2008 or 2010.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload