When using razorEngineService.RunCompile on linux, I encounter a error "The version of Windows PDB writer is older than required: 'diasymreader.dll'". After investigating, I solve it by removing the check of Mono condition in RoslynCompilerServiceBase.cs as below:
//if (IsMono())
//{
opts = opts.WithDebugInformationFormat(DebugInformationFormat.PortablePdb);
//}
I've verified that it works both on windows and linux. Currently I have to fork the code and fix it to use in my project. Hope it's solved in the next release.
When using razorEngineService.RunCompile on linux, I encounter a error "The version of Windows PDB writer is older than required: 'diasymreader.dll'". After investigating, I solve it by removing the check of Mono condition in RoslynCompilerServiceBase.cs as below: //if (IsMono()) //{ opts = opts.WithDebugInformationFormat(DebugInformationFormat.PortablePdb); //} I've verified that it works both on windows and linux. Currently I have to fork the code and fix it to use in my project. Hope it's solved in the next release.