Author: jbevain
Date: 2008-01-10 18:57:15 -0500 (Thu, 10 Jan 2008)
New Revision: 92637
Added:
trunk/cecil/corcompare/ChangeLog
Modified:
trunk/cecil/corcompare/mono-api-info.cs
Log:
2008-01-11 Jb Evain <[EMAIL PROTECTED]>
* mono-api-info.cs: fix the case where the assembly
is in the same directory as mono-api-info.exe
Added: trunk/cecil/corcompare/ChangeLog
===================================================================
--- trunk/cecil/corcompare/ChangeLog 2008-01-10 23:29:06 UTC (rev 92636)
+++ trunk/cecil/corcompare/ChangeLog 2008-01-10 23:57:15 UTC (rev 92637)
@@ -0,0 +1,5 @@
+2008-01-11 Jb Evain <[EMAIL PROTECTED]>
+
+ * mono-api-info.cs: fix the case where the assembly
+ is in the same directory as mono-api-info.exe
+
Property changes on: trunk/cecil/corcompare/ChangeLog
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: trunk/cecil/corcompare/mono-api-info.cs
===================================================================
--- trunk/cecil/corcompare/mono-api-info.cs 2008-01-10 23:29:06 UTC (rev
92636)
+++ trunk/cecil/corcompare/mono-api-info.cs 2008-01-10 23:57:15 UTC (rev
92637)
@@ -85,6 +85,9 @@
static AssemblyDefinition LoadAssembly (string assPath)
{
+ if (assPath.IndexOf
(System.IO.Path.DirectorySeparatorChar) == -1)
+ return new AssemblyResolver (".").Resolve
(assPath);
+
string pathOnly = assPath.Substring( 0,
assPath.LastIndexOf (System.IO.Path.DirectorySeparatorChar) );
string name = assPath.Substring (assPath.LastIndexOf
(System.IO.Path.DirectorySeparatorChar) + 1);
return (new AssemblyResolver (pathOnly)).Resolve (name);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches