How to get the project files in the whole solution? #49563
Unanswered
KyouyamaKazusa0805
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Maybe I'm missing something, but it seems to me that rather than making a Visual Studio extension you should just be making a plain old Roslyn analyzer with a code fix. You won't have to worry about enumerating files and such, the compiler will handle that for you. Here's the official tutorial on writing them: https://docs.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/tutorials/how-to-write-csharp-analyzer-code-fix If you want your code fix to be available at all times, you can deploy them as Visual Studio extensions. (Otherwise you can just distribute it as a NuGet package and install it on projects individually.) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone. I'm new for writing a VS plugin.
Sometimes I want to clean code, but it seems that code fixes don't process some tiny ones, such as the range checks for
int
values likei is > 10
ori > 10
. The former one uses an unnecessary keywordis
. Currently, I want to write code to create a plugin to find all "keywordis
s" (Indeed, I know that I can use "Find in files" or "find or replaces" to find all keywordis
s. However, I'd like to create a new plugin to help me find the symbol with the specified kind, specified name or others. In this way I can find all symbols at the specified location quickly and efficiently no matter what I want to find).However, I'm stuck in the first step. How should I do to get all files in the specified solution?
Thanks a lot. :P
Beta Was this translation helpful? Give feedback.
All reactions