diff options
author | Lluis Sanchez <lluis@novell.com> | 2010-03-26 14:41:22 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2010-03-26 14:41:22 +0300 |
commit | 28b36103a73ad02e7ea00d151a6cb8a576e6cedc (patch) | |
tree | 95f09a92e161f8258054173a47e854933f85e479 | |
parent | 33b4c6c34440b774909576b9fee4b9eead4ef800 (diff) |
* Mono.Addins.Database/AddinScanner.cs: Fix bug #541661 - Assemblies
with capital .DLL cannot be loaded.
svn path=/trunk/mono-addins/; revision=154258
-rw-r--r-- | Mono.Addins/ChangeLog | 5 | ||||
-rw-r--r-- | Mono.Addins/Mono.Addins.Database/AddinScanner.cs | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/Mono.Addins/ChangeLog b/Mono.Addins/ChangeLog index 53101e1..66146c4 100644 --- a/Mono.Addins/ChangeLog +++ b/Mono.Addins/ChangeLog @@ -1,5 +1,10 @@ 2010-03-26 Lluis Sanchez Gual <lluis@novell.com> + * Mono.Addins.Database/AddinScanner.cs: Fix bug #541661 - + Assemblies with capital .DLL cannot be loaded. + +2010-03-26 Lluis Sanchez Gual <lluis@novell.com> + * Makefile.am: * Mono.Addins.csproj: * Mono.Addins/AddinAttribute.cs: diff --git a/Mono.Addins/Mono.Addins.Database/AddinScanner.cs b/Mono.Addins/Mono.Addins.Database/AddinScanner.cs index b10ee5b..f9e418a 100644 --- a/Mono.Addins/Mono.Addins.Database/AddinScanner.cs +++ b/Mono.Addins/Mono.Addins.Database/AddinScanner.cs @@ -266,7 +266,7 @@ namespace Mono.Addins.Database AddinDescription config = null; try { - string ext = Path.GetExtension (file); + string ext = Path.GetExtension (file).ToLower (); if (ext == ".dll" || ext == ".exe") scanSuccessful = ScanAssembly (monitor, file, scanResult, out config); @@ -401,7 +401,7 @@ namespace Mono.Addins.Database monitor.Log ("plog:scan:" + file); try { - string ext = Path.GetExtension (file); + string ext = Path.GetExtension (file).ToLower (); bool scanSuccessful; if (ext == ".dll" || ext == ".exe") |