Visual Studio - Attach source code to reference

Joe Daley picture Joe Daley · Apr 12, 2010 · Viewed 24.5k times · Source

My C# project references a third-party DLL for which I have the source code. Can I somehow tell Visual Studio the location of that source code, so that, for example, when I press F12 to open the definition of a method in the DLL, it will open up the source code, instead of opening up the "Class [from metadata]" stub code?

Answer

Cesar Reyes picture Cesar Reyes · Sep 29, 2010

If you use ReSharper, you can enable it by going to ReSharper / Options / External Sources, and move up "Sources from symbol files". Then in the tab "Sources from symbol files", click "Advanced" and there you can map source folders.