This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
Exceptions thrown from Views when run from a net461 application do not contain line numbers or file info #6356
Closed
Description
The reason why this occurs is because our CSharpCompiler.EmitOptions
unconditionally sets the debugInformationFormat to the pdb format (can't be understood by .net framework). We should consider auto-detecting the current framework and set the PDB format accordingly.
Note that this blocks the RuntimeErrorAreListedByErrorPageMiddleware
test from passing on net461.
This issue can be closed as a duplicate of dotnet/extensions#235 if we complete that one first. Leaving this issue here in-case we decide to go for a non-portable-pdb approach; the sdk will be moving to non-portable pdbs for desktop applications anyways so this may be more consistent with the rest of the system.