Ensure we remove any debugging or configuration items if the assembly is not required
authorSebastien Pouliot <sebastien@xamarin.com>
Fri, 17 Feb 2012 21:27:34 +0000 (16:27 -0500)
committerSebastien Pouliot <sebastien@xamarin.com>
Fri, 17 Feb 2012 21:27:34 +0000 (16:27 -0500)
mcs/tools/linker/Mono.Linker.Steps/OutputStep.cs

index 0658e52cb85a9282f4d1d752e4fb10f9846bd891..af3325a77af5c30cbc841ab080dcfdb9a54c8229 100644 (file)
@@ -71,8 +71,11 @@ namespace Mono.Linker.Steps {
                        case AssemblyAction.Delete:
                                CloseSymbols (assembly);
                                var target = GetAssemblyFileName (assembly, directory);
-                               if (File.Exists (target))
+                               if (File.Exists (target)) {
                                        File.Delete (target);
+                                       File.Delete (target + ".mdb");
+                                       File.Delete (GetConfigFile (target));
+                               }
                                break;
                        default:
                                CloseSymbols (assembly);