I have cshtml
files in a shared library project, that is then referenced by the main website project.
A VirtualPathProvider
is registered on startup to make it look like the views from the shared library actually exist in the main website.
The problem is breakpoints no longer work, as visual studio looks at the main website's .pdb
file for the debug symbols but of course the razor files aren't really there.
Has anyone else had any luck with virtual paths and breakpoints in an MVC
project? I assume putting razor views in a shared library must be a common thing and people must still be able to debug the files ok?