I missed this when reviewing https://github.com/oleg-shilo/cs-script/commit/9209e8498fd200d4dee2650df35bf2d94c743e89 as part of #278. If an embedded PDB format is specified when calling compilation.Emit, a PDB output stream cannot also be specified or the call will throw an exception. I've added a special case for the call to compilation.Emit and skipped the file write when the PDB stream is not used. I've tested this on my private repository which uses the feature and it works as intended.
I missed this when reviewing https://github.com/oleg-shilo/cs-script/commit/9209e8498fd200d4dee2650df35bf2d94c743e89 as part of #278. If an embedded PDB format is specified when calling
compilation.Emit
, a PDB output stream cannot also be specified or the call will throw an exception. I've added a special case for the call tocompilation.Emit
and skipped the file write when the PDB stream is not used. I've tested this on my private repository which uses the feature and it works as intended.