This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
CodeGeneration should not generate line pragmas from unknown file paths #1110
Closed
Description
In the case of MVC extensions we generate dynamic _ViewImports.cshtml
file equivalents that don't end up having any actual existence on disk. When one of those files has an @using Foo
we codegen a line pragma for Foo
that does not have a filename. We don't want innaccurate line pragma errors due to lack of file name so we shouldn't render a pragma if a filename is not set on a source location.