如何修改程序集版本? [英] How to modify the assembly version?

查看:301
本文介绍了如何修改程序集版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要使用代码!





例如,我得到一个DLL路径,我可以修改它的汇编版本



我需要这个效果!



我不想修改项目属性

Need to use code!


for example ,i get a DLL path,i can modify it's assembly version

I need this effect!

I do not want to modify the project properties

推荐答案

不要。

如果你在生产代码中这样做,很有可能这样的活动 - 需要改变EXE或DLL文件 - 将被视为可能的病毒活动,您的应用程序将被标记为可能是恶意的。

当然,如果我系统上的新应用程序开始这样做,反病毒会阻止它并警告我 - 应用程序将尽快退回以获得退款。



我可以看到在构建之后需要修改程序集版本的原因。
Don't.
If you do this in production code, there is a very good chance that such activity - requiring as it does changes to an EXE or DLL file - will be regarded as "probable virus activity" and your application will be tagged as "probably malicious".
Certainly, if a new app on my system started doing that, by anti-virus would block it and warn me - and the app would be returned for a refund as fast as possible.

There is no good reason I can see for needing to modify an assembly version after it has been built.


这篇关于如何修改程序集版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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