title: Possible to alias .NET namespaces in app.config?
body: <p>ASP.NET has a feature that allows you to declare implicitly used namespaces in the web.config.</p>
  
  <pre><code>&lt;configuration&gt;
   &lt;system.web&gt;
    &lt;pages&gt;
     &lt;namespaces&gt;
      &lt;add namespace="System.Web.Mvc"/&gt;
     &lt;/namespaces&gt;
    &lt;/pages&gt;
   &lt;/system.web&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I'm curious to know if configuration for other .net environments (like winforms, console apps, and in particular, silverlight applications) have this ability.  <strong>If so</strong>, then the follow up question is whether we are able to alias a namespace in said configuration.</p>
  
  <p>The analog of this bit of code, but via configuration:</p>
  
  <pre><code>using MyNamespace = System.Web.Mvc;
  </code></pre>
  
  <p><em>edit: my intention comes from looking at projects such as <a href="http://silversprite.codeplex.com/" rel="noreferrer">silversprite</a> which aims to provide an identical API for XNA for silverlight.  This allows you to write an XNA game once, and then deploy it onto the web using silverlight.  The only problem is that all of the silversprite version of the APIs are in a different namespace, so to use it you need to use an ifdef around the using statements.  It would have been awesome if one could simply alias the silversprite namespace so that your code wouldn't have to change between platforms.</em></p>