可以查看源代码或反编译XLL Excel插件 [英] Possible to view source code or decompile XLL Excel add in

查看:1349
本文介绍了可以查看源代码或反编译XLL Excel插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在没有原始源代码的情况下查看XLL Excel加载项的源代码?我猜想这个XLL是用C#编写的,但不确定. IE.您可以使用dotPeek进行反编译的.NET DLL,或者可以通过Developer> Visual Basic在Excel中打开的XLA文件.我没有运气就尝试了这两种方法.

解决方案

您知道此Excel加载项是否使用Excel-DNA构建吗?如果是这样,则可以使用 ExcelDnaUnpack 从.XLL文件中提取.NET程序集.. >

源代码在GitHub上: https://github.com/augustoproiete/ExcelDnaUnpack

您可以在发布中下载ExcelDnaUnpack.exe(准备使用的编译工具). GitHub上的项目标签.


ExcelDnaUnpack 是用于提取以下内容的命令行实用程序ExcelDnaPack随附的ExcelDna加载项

Usage: ExcelDnaUnpack.exe [<options>]

Where [<options>] is any of:

--xllFile=VALUE    The XLL file to be unpacked; e.g. MyAddIn-packed.xll
--outFolder=VALUE  [Optional] The folder into which the extracted files will be written; defaults to '.\unpacked'
--overwrite        [Optional] Allow existing files of the same name to be overwritten

Example: ExcelDnaUnpack.exe --xllFile=MyAddins\FirstAddin-packed.xll
         The extracted files will be saved to MyAddins\unpacked

Is it possible to view the source code of the XLL Excel add in without having the original source code? I'm guessing that this XLL was written in C#, but not sure. I.e. a .NET DLL you can decompile with dotPeek, or an XLA file you can open in Excel via Developer > Visual Basic. I tried both approaches with no luck.

解决方案

Do you know if this Excel Add-In was built using Excel-DNA? If it was, then you can extract the .NET assemblies from the .XLL file using ExcelDnaUnpack.

Source code is on GitHub: https://github.com/augustoproiete/ExcelDnaUnpack

You can download ExcelDnaUnpack.exe (the compiled tool ready to use) in the Releases tab of the project on GitHub.


ExcelDnaUnpack is a command-line utility to extract the contents of ExcelDna add-ins packed with ExcelDnaPack

Usage: ExcelDnaUnpack.exe [<options>]

Where [<options>] is any of:

--xllFile=VALUE    The XLL file to be unpacked; e.g. MyAddIn-packed.xll
--outFolder=VALUE  [Optional] The folder into which the extracted files will be written; defaults to '.\unpacked'
--overwrite        [Optional] Allow existing files of the same name to be overwritten

Example: ExcelDnaUnpack.exe --xllFile=MyAddins\FirstAddin-packed.xll
         The extracted files will be saved to MyAddins\unpacked

这篇关于可以查看源代码或反编译XLL Excel插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆