Breakpoints in Razor Views insertion are not hit when using VirtualPathProvider

I have files cshtml

in a shared library project that is then referenced by the main website project.

A is VirtualPathProvider

registered at startup to make it look like the views from the shared library actually exist on the main website.

The problem is that the breakpoints no longer work as visual studio is looking at the main file .pdb

for debug symbols, but of course the razor files don't actually exist.

Anyone else have any luck with virtual paths and breakpoints in the project MVC

? I suppose razor representation in a shared library should be common and people should still debug files okay?

+3


source to share





All Articles