重命名ICSharpCode.SharpZipLib.dll [英] Renaming ICSharpCode.SharpZipLib.dll

查看:227
本文介绍了重命名ICSharpCode.SharpZipLib.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很好,我有一个问题重命名ICSharpCode.SharpZipLib.dll文件到任何其他。我试图缩短文件名。我在项目中引用了程序集,但是当程序到达我使用库的语句时。它产生一个错误,它找不到程序集或文件'ICSharpCode.SharpZipLib'。当我将文件名更改回ICSharpCode.SharpZipLib.dll应用程序正常工作。所以,有没有办法改变文件名。此外,我允许在不违反许可证的情况下更改它(我将在商业应用程序中使用它)。感谢。

well I am having a problem renaming the ICSharpCode.SharpZipLib.dll file to anythig else. I am trying to shorten the file name. I reference the assembly in the project, but when the program reaches the statements where I use the library. It spawns an error that it could not find the assembly or file 'ICSharpCode.SharpZipLib'. When I change the file name back to ICSharpCode.SharpZipLib.dll the application works noramally. So, is there any way to change the file name. Also, am I allowed to change it without violating the license (I am going to use it in a commercial application). Thanks.

推荐答案

您可以尝试反汇编库,然后使用新名称重新汇编。

You could try to disassemble the library and then re-assemble with a new name.

例如

1)打开Visual Studio命令提示符。

1) Open Visual Studio command prompt.

ildasm /all /out=ICSharpCode.SharpZipLib.il ICSharpCode.SharpZipLib.dll
ilasm /dll /out=shortname.dll ICSharpCode.SharpZipLib.il

2)将shortname.dll添加到项目

2) Add shortname.dll to the project

这篇关于重命名ICSharpCode.SharpZipLib.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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