Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gendarme/framework/Gendarme.Framework.Rocks/ModuleRocks.cs')
-rw-r--r--gendarme/framework/Gendarme.Framework.Rocks/ModuleRocks.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/gendarme/framework/Gendarme.Framework.Rocks/ModuleRocks.cs b/gendarme/framework/Gendarme.Framework.Rocks/ModuleRocks.cs
index 33a299b0..fa0ab600 100644
--- a/gendarme/framework/Gendarme.Framework.Rocks/ModuleRocks.cs
+++ b/gendarme/framework/Gendarme.Framework.Rocks/ModuleRocks.cs
@@ -128,6 +128,9 @@ namespace Gendarme.Framework.Rocks {
// This makes it possible to catch such exception without a reference to the
// Mono.CompilerServices.SymbolWriter.dll assembly
}
+ catch (InvalidOperationException) {
+ // this happens if the PDB is out of sync with the actual DLL (w/new PdbCciReader)
+ }
// in any case (of failure to load symbols) Gendarme can continue its analysis (but some rules
// can be affected). The HasDebuggingInformation extension method let them adjust themselves
}