Find method refs - up to date example

Topics: APIs, General
Nov 27, 2014 at 12:48 AM

I installed the VS2015 preview and SDK today. My intention is to write a class which enables finding references to particular methods in a given external solution but no idea where to start. Any examples I can find on the net seem to be out of date.

I notice the question marked (FAQ7) on the documentation tab indicates their is a sample prepared that might help me. I cant seem to find it though - the page suggests there would be samples loaded to my disk in the SDK preview installation folder: -

"Many answers have code snippets associated with them. The code exists as samples/tests that the team releases in the SDK Preview – "%installdir%{CSharp|VisualBasic}\APISampleUnitTests{CS|VB}\faq.{cs|vb}". Where there is code available, the answer to the question has one or more tags such as “FAQ(27)” in the text. You can open the code files just named and search for the tag. "

, but I cant find these code files anywhere.

if someone could point me in the right direction would be really appreciated.

Nov 27, 2014 at 2:26 AM
I have found the samples - they are at Roslyn/Src/Samples/Samples.sln

I've tried running the example method FindAllReferencesToAMethodInASolution(), but doesn't seem to work though.

I don't suppose anyone has an up to date example of how to do this at all?