<?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>How to find out where Assembly.Load(String) would load an assembly from without actually doing it?</title><link>http://blogs.msdn.com/b/junfeng/archive/2005/05/17/418981.aspx</link><description>How to find out where Assembly.Load(String) would load an assembly from without actually doing it?</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How to find out where Assembly.Load(String) would load an assembly from without actually doing it?</title><link>http://blogs.msdn.com/b/junfeng/archive/2005/05/17/418981.aspx#421231</link><pubDate>Tue, 24 May 2005 03:02:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:421231</guid><dc:creator>Junfeng Zhang</dc:creator><description>The problem is those factors are unknown until runtime. There is really nothing you can do.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=421231" width="1" height="1"&gt;</description></item><item><title>re: How to find out where Assembly.Load(String) would load an assembly from without actually doing it?</title><link>http://blogs.msdn.com/b/junfeng/archive/2005/05/17/418981.aspx#421226</link><pubDate>Tue, 24 May 2005 02:51:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:421226</guid><dc:creator>Norman Diamond</dc:creator><description>It seems to me that the importance of the &amp;quot;which&amp;quot; command multiplies by a huge factor in that kind of situation.&lt;br&gt;&lt;br&gt;By the way this means a real &amp;quot;which&amp;quot; command not just one that looks at %PATH%.  For example competent &amp;quot;which&amp;quot; commands on Unix look at aliases and other possible settings besides just $PATH, in order to report what the shell (or OS in your case) will really do.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=421226" width="1" height="1"&gt;</description></item><item><title>re: How to find out where Assembly.Load(String) would load an assembly from without actually doing it?</title><link>http://blogs.msdn.com/b/junfeng/archive/2005/05/17/418981.aspx#420983</link><pubDate>Mon, 23 May 2005 09:24:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:420983</guid><dc:creator>Junfeng Zhang</dc:creator><description>Norman,&lt;br&gt;&lt;br&gt;Looking for exes is very static. The OS simply looks at the directories listed in %PATH% environment variable. &lt;br&gt;&lt;br&gt;Now imagine this:&lt;br&gt;&lt;br&gt;There is a switch. When the switch is turned on, the OS will look at some other places instead of %PATH%. &lt;br&gt;&lt;br&gt;Ok. There are more switches. When they are turned on the OS will do something different. &lt;br&gt;&lt;br&gt;Even the exe is not found in %PATH%, you can say I want the OS to try something else. &lt;br&gt;&lt;br&gt;Now how much &amp;quot;which&amp;quot; is useful?&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=420983" width="1" height="1"&gt;</description></item><item><title>re: How to find out where Assembly.Load(String) would load an assembly from without actually doing it?</title><link>http://blogs.msdn.com/b/junfeng/archive/2005/05/17/418981.aspx#420903</link><pubDate>Mon, 23 May 2005 03:31:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:420903</guid><dc:creator>Norman Diamond</dc:creator><description>&amp;gt; Why do you need to know that?&lt;br&gt;&lt;br&gt;Oh that's easy to answer.  Or maybe only easy to nearly-answer, but here are two very very near-answers.&lt;br&gt;&lt;br&gt;1.  Why did Raymond Chen blog about a way to do Unix's &amp;quot;which&amp;quot; command in Windows?  Was it because 30 years of experience with the &amp;quot;which&amp;quot; command in Unix showed how useless it was?  Or because it is useful?&lt;br&gt;&lt;br&gt;2.  There are some important programs that run under Windows and inspect the contents of ordinary executable files in sandboxes before letting the ordinary executable files actually run.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=420903" width="1" height="1"&gt;</description></item><item><title>re: How to find out where Assembly.Load(String) would load an assembly from without actually doing it?</title><link>http://blogs.msdn.com/b/junfeng/archive/2005/05/17/418981.aspx#419883</link><pubDate>Thu, 19 May 2005 08:06:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:419883</guid><dc:creator>Junfeng Zhang</dc:creator><description>Well, how about my GAC API Managed Wrapper?&lt;br&gt;&lt;br&gt;Sample Managed GAC API Wrappers&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/junfeng/articles/229649.aspx"&gt;http://blogs.msdn.com/junfeng/articles/229649.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;Specifically, QueryAssemblyInfo.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=419883" width="1" height="1"&gt;</description></item><item><title>re: How to find out where Assembly.Load(String) would load an assembly from without actually doing it?</title><link>http://blogs.msdn.com/b/junfeng/archive/2005/05/17/418981.aspx#419865</link><pubDate>Thu, 19 May 2005 07:45:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:419865</guid><dc:creator>Henry Boehlert</dc:creator><description>I'm creating a makefile (for use by ClearCase omake) out of a VS C#&lt;br&gt;project file.&lt;br&gt;&lt;br&gt;In a script in the XSLT I'm using AssemblyName.GetAssemblyName to figure&lt;br&gt;out if I need to create a /lib parameter for a reference.&lt;br&gt;&lt;br&gt;Maybe I'm totally WTF but it think I would be happy if someone points me to&lt;br&gt;the GAC.Contains method somewhere.&lt;br&gt;&lt;br&gt;Can't use devenv /rebuild because I'm using /win32res with some&lt;br&gt;mandatory custom data for traceability. Furthermore, debug and release&lt;br&gt;bits need to be separated.&lt;br&gt;&lt;br&gt;Desperately waiting for MSBuild, I guess.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=419865" width="1" height="1"&gt;</description></item><item><title>re: How to find out where Assembly.Load(String) would load an assembly from without actually doing it?</title><link>http://blogs.msdn.com/b/junfeng/archive/2005/05/17/418981.aspx#419061</link><pubDate>Wed, 18 May 2005 08:37:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:419061</guid><dc:creator>Ayende Rahien</dc:creator><description>Unless trickery is involved, you would usually get the assembly from AppBasePath or PrivateBinPath,etc.&lt;br&gt;So that should be enough for most of it.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=419061" width="1" height="1"&gt;</description></item></channel></rss>