I\'m generating a Greeter.dll using the Roslyn compiler. My problem occurs trying to load the DLL file.
Here\'s the code:
using System;
using Rosly
Turns out I needed to create a pdb file.
using (FileStream dllStream = new FileStream(dllPath, FileMode.OpenOrCreate))
using (FileStream pdbStream = new FileStream(pdbPath, FileMode.OpenOrCreate))
{
result = compilation.Emit(
executableStream: dllStream,
pdbFileName: pdbPath,
pdbStream: pdbStream);
}