是否有任何工具可以更改程序集的版本 [英] Is there any tool to change version of assembly

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

问题描述

大家好,

离开Visual Studio时,有任何用于编辑程序集版本的工具.

致谢

Hello All,

Leaving Visual studio is there any tool for editing the version of assembly.

Thanks and Regards

推荐答案

我不知道这样的工具,因此我创建了一个实现接口Microsoft.Build.Framework.ITask的自定义工具,请参见:
http://msdn.microsoft.com/en-us/library/microsoft. build.framework.itask.aspx [ ^ ].

使用此接口方法,可以实现.NET程序集,当在标准MSBuild项目文件中引用该程序时,MSBuild可以使用该.NET程序集,以将其优雅地嵌入到生成过程的特殊目标中.在实现方面,您所需要做的就是找到适当的文件,例如"AssemblyInfo.cs",并相应地修改其文本.我建议你这样做.您可以在Microsoft.Build.Framework和MSBuild的文档中轻松找到相关信息.

—SA
I don''t know such tool, so I created a custom tool implementing the interface Microsoft.Build.Framework.ITask, please see:
http://msdn.microsoft.com/en-us/library/microsoft.build.framework.itask.aspx[^].

Using this interface method, you can implement the .NET assembly which can be used by MSBuild when referenced in the standard MSBuild project file to elegantly embed it in a special target of a build process. On the implementation side, all you need is to find appropriate files like "AssemblyInfo.cs" and modify they texts accordingly. I advise you to do that. You can easily find the relevant information in documentation for Microsoft.Build.Framework and MSBuild.

—SA


这篇关于是否有任何工具可以更改程序集的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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