Browse Source

Emit correct PDB filename in test case.

pull/1440/head
Siegfried Pammer 6 years ago
parent
commit
8f635543f8
  1. 2
      ICSharpCode.Decompiler.Tests/Helpers/Tester.cs

2
ICSharpCode.Decompiler.Tests/Helpers/Tester.cs

@ -372,7 +372,7 @@ namespace ICSharpCode.Decompiler.Tests.Helpers @@ -372,7 +372,7 @@ namespace ICSharpCode.Decompiler.Tests.Helpers
));
using (FileStream peStream = File.Open(assemblyName + ".dll", FileMode.OpenOrCreate, FileAccess.ReadWrite))
using (FileStream pdbStream = File.Open(assemblyName + ".pdb", FileMode.OpenOrCreate, FileAccess.ReadWrite)) {
var emitResult = compilation.Emit(peStream, pdbStream, options: new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb), embeddedTexts: embeddedTexts);
var emitResult = compilation.Emit(peStream, pdbStream, options: new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb, pdbFilePath: assemblyName + ".pdb"), embeddedTexts: embeddedTexts);
if (!emitResult.Success) {
StringBuilder b = new StringBuilder("Compiler error:");
foreach (var diag in emitResult.Diagnostics) {

Loading…
Cancel
Save