Ask Your Question
4

How can I locate all the references to a method using Roslyn Refactor?

asked 2023-06-23 17:19:08 +0000

nofretete gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-06-23 17:30:02 +0000

pufferfish gravatar image

To locate all the references to a method using Roslyn Refactor, follow these steps:

  1. Open your solution in Visual Studio.
  2. Right-click on the method you want to locate references to, and select "Find All References" from the context menu. This will open the "Find Results" window in Visual Studio.
  3. In the "Find Results" window, select "Find Results 1" from the dropdown menu.
  4. Click on the "Export" button, and select "CSV" as the export format.
  5. Save the CSV file to your preferred location.
  6. Open Roslyn Refactor in Visual Studio.
  7. Select "Find All References" from the Roslyn Refactor menu.
  8. In the "Find All References" dialog, select the CSV file you saved earlier.
  9. Click on the "Find All" button.
  10. Roslyn Refactor will open a new window with all the references to the method you selected.
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-23 17:19:08 +0000

Seen: 12 times

Last updated: Jun 23 '23