<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Extern alias walkthrough</title><link>http://blogs.msdn.com/ansonh/archive/2006/09/27/774692.aspx</link><description>Extern aliases is a feature that was introduced in VS 2005 that I don’t believe is being used very often. There are two reasons for this. First, the feature is somewhat undiscoverable, particularly if you don’t happen to be looking for it. Second, the</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Community Convergence V</title><link>http://blogs.msdn.com/ansonh/archive/2006/09/27/774692.aspx#776376</link><pubDate>Fri, 29 Sep 2006 04:13:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:776376</guid><dc:creator>Charlie Calvert's Community Blog</dc:creator><description>Welcome to the fifth Community Convergence update. This file is published on my blog, and shortly thereafter...</description></item><item><title>C# Links</title><link>http://blogs.msdn.com/ansonh/archive/2006/09/27/774692.aspx#810691</link><pubDate>Tue, 10 Oct 2006 03:54:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:810691</guid><dc:creator>Charlie Calvert's Community Blog</dc:creator><description>&lt;p&gt;Learn Videos and Presentations The LINQ Framework: What's New in the May CTP Anders: Chatting about LINQ&lt;/p&gt;
</description></item><item><title>re: Extern alias walkthrough</title><link>http://blogs.msdn.com/ansonh/archive/2006/09/27/774692.aspx#820902</link><pubDate>Fri, 13 Oct 2006 00:10:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:820902</guid><dc:creator>gabriel</dc:creator><description>&lt;p&gt;Great refresher. Thanks!&lt;/p&gt;</description></item><item><title>re: Extern alias walkthrough</title><link>http://blogs.msdn.com/ansonh/archive/2006/09/27/774692.aspx#842702</link><pubDate>Thu, 19 Oct 2006 09:15:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:842702</guid><dc:creator>decyclone</dc:creator><description>&lt;P&gt;Hi, nice article.&lt;/P&gt;
&lt;P&gt;But i just wanted to know if i can define aliases in the project scope or not? I mean to say when i want to use an alias for say Class1.Class2.Class3, i need to create that alias in all the files where i want to use them. Is there any way to define an alias once in a project and use it everywhere?&lt;/P&gt;
ResponseThe aliases themselves are project level, but in order to bring them into scope you must use the extern alias directive in every file (the same way that using aliases work).</description></item><item><title>extern alias does not work</title><link>http://blogs.msdn.com/ansonh/archive/2006/09/27/774692.aspx#982495</link><pubDate>Mon, 06 Nov 2006 01:20:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:982495</guid><dc:creator>Remas Wojciechowski</dc:creator><description>&lt;p&gt;This feature is indeed difficult to discover. The happier I was to actually find it on my own. Still, my happiness didn't last for long--VS2005 errors out upon build with &amp;quot;The extern alias 'ntmdb' was not specified in a /reference option&amp;quot;. This is quite weird because VS2005 actually creates a call to CSS.EXE that compiles all right if copied to a console window. It might play a role that the assembly I'm referencing is an interop DLL. Any thoughts?&lt;/p&gt;</description></item><item><title>re: Extern alias walkthrough</title><link>http://blogs.msdn.com/ansonh/archive/2006/09/27/774692.aspx#1672940</link><pubDate>Wed, 14 Feb 2007 06:03:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1672940</guid><dc:creator>rudrar</dc:creator><description>&lt;p&gt;Hi &amp;nbsp;Anson,&lt;/p&gt;
&lt;p&gt; Can you please tell me how we can we get aliases property in web application. I want to use Extern alias in a web application.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Rudra Roy&lt;/p&gt;</description></item><item><title>re: Extern alias walkthrough</title><link>http://blogs.msdn.com/ansonh/archive/2006/09/27/774692.aspx#4372878</link><pubDate>Tue, 14 Aug 2007 00:58:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4372878</guid><dc:creator>John Santiago-Wile</dc:creator><description>&lt;p&gt;I've tried to use this method, but ran into a problem. &amp;nbsp;If the two versions of the assembly have the same name, there doesn't seem to be any way of adding them to the project references. &amp;nbsp;If I rename one of the assemblies, I end up with a CS1703 error, along with MSB3243 and MSB3247 warnings.&lt;/p&gt;
&lt;p&gt;As an example, try pulling in the v1.1 System.dll and the v2.0 System.dll.&lt;/p&gt;</description></item><item><title>Extern alias walkthrough</title><link>http://blogs.msdn.com/ansonh/archive/2006/09/27/774692.aspx#6524263</link><pubDate>Mon, 26 Nov 2007 04:43:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6524263</guid><dc:creator>Extern alias walkthrough</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://feeds.maxblog.eu/item_702438.html"&gt;http://feeds.maxblog.eu/item_702438.html&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Extern alias walkthrough</title><link>http://blogs.msdn.com/ansonh/archive/2006/09/27/774692.aspx#7816132</link><pubDate>Wed, 20 Feb 2008 14:52:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7816132</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is definitely a great feature when needed. Just a few questions:&lt;/p&gt;
&lt;p&gt;(1) Why do the interop assemblies generated by Visual Studio (I'm using version 2005) not feature the &amp;quot;Aliases&amp;quot; property in your screen capture?&lt;/p&gt;
&lt;p&gt;(2) Why is &amp;quot;alias vs no-alias&amp;quot; not enough for the compiler to resolve the type names? Example: try to invoke a method using a type in the non-aliased assembly which also exists in the aliased assembly...&lt;/p&gt;
&lt;p&gt;(2) My most important question: does Tlbimp.exe allow to assign an alias to an interop assembly? If not, can this be done somehow?&lt;/p&gt;
&lt;p&gt;The .NET Framework guys at Microsoft could improve type resolution a bit I think.&lt;/p&gt;</description></item><item><title>re: Extern alias walkthrough</title><link>http://blogs.msdn.com/ansonh/archive/2006/09/27/774692.aspx#9186657</link><pubDate>Tue, 09 Dec 2008 11:04:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9186657</guid><dc:creator>gorjy</dc:creator><description>&lt;p&gt;I think that if these ambiguities exists, there is something wrong with your project/solution. It is not normal to have more than one occurrence of a function (name must be unique) no matter if functionality is the same or not, in a project including external libraries.&lt;/p&gt;
&lt;p&gt;In my opinion the usage must be deprecated in order to clean the out code.&lt;/p&gt;</description></item><item><title>re: Extern alias walkthrough</title><link>http://blogs.msdn.com/ansonh/archive/2006/09/27/774692.aspx#9624829</link><pubDate>Mon, 18 May 2009 08:36:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9624829</guid><dc:creator>Atul Ilwadi</dc:creator><description>&lt;p&gt;How can I define Alias to the DLL which is referenced in a Website and not a Web Project in VS2008&lt;/p&gt;</description></item><item><title>re: Extern alias walkthrough</title><link>http://blogs.msdn.com/ansonh/archive/2006/09/27/774692.aspx#9902130</link><pubDate>Fri, 02 Oct 2009 02:44:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9902130</guid><dc:creator>MeRcUrY</dc:creator><description>&lt;p&gt;Thank you very much you are my HEROE!! your walkthrough also fixed the problem of the Compile error message:&lt;/p&gt;
&lt;p&gt;&amp;quot;The extern alias was not specified in a /reference option&amp;quot;&lt;/p&gt;</description></item></channel></rss>