更换组件版本的编译.NET程序集 [英] Change Assembly Version in a compiled .NET assembly
本文介绍了更换组件版本的编译.NET程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
简单的问题...有没有办法改变编译.NET程序集的程序集版本?
Simple question... is there a way to change the Assembly Version of a compiled .NET assembly?
我实际上是罚款的方式来改变大会文件版本。
I'd actually be fine with a way to change the Assembly File Version.
推荐答案
您可以使用 ILMerge < /一>:
You can use ILMerge:
ILMerge.exe Foo.dll /ver:1.2.3.4 /out:Foo2.dll
一个有效的理由这样做是为了增加程序集版本的版本中,你发现重大更改(使用NDepend的举例)。如果这样,没有重大更改程序集的版本保持不变,并可以发布补丁轻松构建
A valid reason to do this is to increment the assembly version in a build in you find breaking changes (using NDepend for example). That way if there are no breaking changes the assembly version stays the same, and you can patch released builds easily.
我们总是递增文件版本,以及反映版本号。
We always increment the file version, and that reflects the build number.
这篇关于更换组件版本的编译.NET程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文