I’m looking for an equivalent to the JDT in Visual Studio for C#. Generally, I want to extend Visual Studio with a plugin to analyze C# source code. So what should I look for?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are looking for the Visual Studio SDK, specifically the Visual Studio Integration SDK section. You may find references to Visual Studio Extensibility (VSX) – they are the same thing.
The learning site for VSX has a few links to get you started, especially in the “Getting Started” section. You can find detailed coverage in the documentation.
EDIT:
If you are looking for a plugin to analyze your code and don’t mind buying it, Resharper is the best option. Resharper has its own SDK that allows you to create plugins for it.
If you want to create your own code analysis plugin, you will have to do a bit of work. VS doesn’t include any parsing or analysis support. This will come with Project Roslyn, hopefully soon after .NET 4.5 RTMs. Right now it’s in CTP and may well be cancelled.
There are some tools that can help with analysis. ANTLR has a .NET distribution.Net that targets C#. Mono.Cecil is a Mono library that inspects IL code and is the basis of almost all .NET decompilers.