|
|
|
@ -259,10 +259,9 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler
@@ -259,10 +259,9 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler
|
|
|
|
|
CancellationToken = cancellationToken |
|
|
|
|
}, |
|
|
|
|
delegate (IGrouping<string, TypeDefinitionHandle> file) { |
|
|
|
|
using (StreamWriter w = new StreamWriter(Path.Combine(TargetDirectory, file.Key))) |
|
|
|
|
{ |
|
|
|
|
try |
|
|
|
|
{ |
|
|
|
|
using StreamWriter w = new StreamWriter(Path.Combine(TargetDirectory, file.Key)); |
|
|
|
|
CSharpDecompiler decompiler = CreateDecompiler(ts); |
|
|
|
|
|
|
|
|
|
foreach (var partialType in partialTypes) |
|
|
|
@ -298,7 +297,6 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler
@@ -298,7 +297,6 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler
|
|
|
|
|
{ |
|
|
|
|
throw new DecompilerException(module, $"Error decompiling for '{file.Key}'", innerException); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
progress.Status = file.Key; |
|
|
|
|
Interlocked.Increment(ref progress.UnitsCompleted); |
|
|
|
|
progressReporter?.Report(progress); |
|
|
|
|