To locate all the references to a method using Roslyn Refactor, follow these steps:
- Open your solution in Visual Studio.
- 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.
- In the "Find Results" window, select "Find Results 1" from the dropdown menu.
- Click on the "Export" button, and select "CSV" as the export format.
- Save the CSV file to your preferred location.
- Open Roslyn Refactor in Visual Studio.
- Select "Find All References" from the Roslyn Refactor menu.
- In the "Find All References" dialog, select the CSV file you saved earlier.
- Click on the "Find All" button.
- Roslyn Refactor will open a new window with all the references to the method you selected.