如何创建 Visual Studio 插件来分析代码
我想尝试为 Visual Studio 编写插件,它可以像 resharper 一样使用代码,例如查看一行代码,然后建议需要添加哪些“using 语句”。
这纯粹是为了教育目的和一点乐趣,但是我不知道从哪里开始使用可扩展性模型。 谁能给我指出一些好的资源的正确方向
I want to have a go at writing add ins for visual studio that can play around with the code like resharper does e.g. look at a line of code and then suggest which "using statements" need to be added.
This is purely for educational purposes and a bit of fun, however I have no idea where to get started with the extensibility model. Can anyone point me in the right direction of some good resources
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我将从 通用编译器基础设施开始 如果您正在分析编译为 MSIL 的代码。
I'd start with the Common Compiler Infrastructure if you are analyizing code compiled to MSIL.
您可以查看 Roslyn CTP:http://msdn.microsoft.com /en-us/vstudio/roslyn.aspx
You can take a look at the Roslyn CTP: http://msdn.microsoft.com/en-us/vstudio/roslyn.aspx