Fix bug #519922.
authorAnkit Jain <radical@corewars.org>
Wed, 15 Jul 2009 19:43:02 +0000 (19:43 -0000)
committerAnkit Jain <radical@corewars.org>
Wed, 15 Jul 2009 19:43:02 +0000 (19:43 -0000)
commit8b8f1f0122370c54a9a8c7fc74d05accd92e40f7
tree7629486cfe376873399dd205a5fe0ca4c6097e49
parent064974f0d56a21c176d749b958e9131706664cd6
Fix bug #519922.

* AssemblyResolver.cs (FindInDirectory): Try the @reference as a
filename as it is, or with different @file_extensions.
If @reference is a assembly name, then look for *.@file_extensions
for target assembly.
(GetAssemblyNameFromFile): Log FileNotFoundException and BadImageFormatException
separately, instead of a single unclear message.

Change all uses of Assembly.GetAssemblyName with GetAssemblyNameFromFile
which does the required error checking and logging.

svn path=/trunk/mcs/; revision=137986
mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/AssemblyResolver.cs
mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/ChangeLog