When the feature is enabled and users click Go to Definition (F12), Navigate to Source happens if:
- current symbol originates from BCL libraries. The behavior is to go to exact line in http://referencesource.microsoft.com/.
- current symbol comes from an assembly with an associated source-indexed pdb file. The behavior is to go to the source code provider that hosts associated source code.
Here is a screencast of the feature in action:
You should run SourceLink on pdb files and distribute these files with your NuGet packages. ProjectScaffold also includes a SourceLink target to make the process easier to use. Once the source-indexed pdb files are available, Navigate to Source should work as expected.
Navigate to Source should work for any assembly if its source-indexed pdb file locates in the symbol cache directory. You should enable source server support and set symbol cache directory -- see a simple guide at http://ctaggart.github.io/SourceLink/visualstudio.html. During the debugging process, pdb files will be downloaded and cached in this folder. In the subsequent uses of F12 Navigate to Source, VFPT will pick up and use these pdb files.