简体   繁体   English

如何检查/反汇编Visual Studio扩展

[英]How to inspect / disassemble a Visual Studio Extension

I have a visual studio extension (.vsix) which I want to inspect and/or preferably disassemble as it contains some source code that I want to research. 我有一个visual studio扩展(.vsix),我想检查和/或最好反汇编,因为它包含一些我想要研究的源代码。

I am using Visual C# 2010 Express Edition, however I would like an external tool if such a thing exists. 我正在使用Visual C#2010 Express Edition,但是如果存在这样的东西,我想要一个外部工具。

Can anyone suggest where I might find tools for inspecting / disassembling extensions? 任何人都可以建议我在哪里可以找到检查/拆卸扩展的工具?

Thanks. 谢谢。

vsix文件的扩展名更改为zip ,然后在其包含的DLL上使用您喜欢的反汇编程序。

As already said, VS plugins are just glorified zip-archives. 如前所述,VS插件只是美化的zip存档。 Rename plugin file from vsix to zip, unpack it and decompile. 将插件文件从vsix重命名为zip,解压缩并反编译。 I have just done it with free Teleric Just Decompile and got this code out of nuget package: 我刚刚用免费的Teleric Just Decompile完成了它,并从nuget包中获取了这个代码:

protected virtual bool CollapseVersions
{
    get
    {
        SwitchParameter allVersions = this.AllVersions;
        if (allVersions.IsPresent)
        {
            return false;
        }
        else
        {
            return this.ListAvailable;
        }
    }
}

Pretty cool! 太酷了!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM