[MSBuild] Fix minor assembly resolution issue
authorLluis Sanchez <lluis@xamarin.com>
Fri, 5 Jun 2015 12:48:49 +0000 (14:48 +0200)
committerLluis Sanchez <lluis@xamarin.com>
Fri, 5 Jun 2015 12:48:49 +0000 (14:48 +0200)
When getting the assembly name of a file, don't cache it if the
file has just been deleted.

mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/AssemblyResolver.cs

index 41e92294d1e247a5226f156334f5bd60c1760740..5e0ec480956b7199675a256d60af3be29f248df5 100644 (file)
@@ -342,6 +342,7 @@ namespace Microsoft.Build.Tasks {
                        } catch (FileNotFoundException) {
                                LogSearchMessage ("Considered '{0}' as a file, but the file does not exist",
                                                filename);
+                               return false;
                        } catch (BadImageFormatException) {
                                LogSearchMessage ("Considered '{0}' as a file, but it is an invalid assembly",
                                                filename);