如何更改已开发项目的版本号 [英] How to change Version number of project developed

查看:75
本文介绍了如何更改已开发项目的版本号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我开发了1个简单的应用程序来生成工资单,现在我对该应用程序进行了一些修改,现在我必须更改版本号从1.0到1.1,我该怎么做才能在安装程序运行期间和控制面板中显示它。

请帮助我

解决方案

< blockquote>您可以通过AssemblyInfo文件更改程序集版本。

浏览 http ://msdn.microsoft.com/en-us/library/ms973869.aspx [ ^ ]更详细地解释了这一点。






您可以在双击我的项目时更改版本,接下来在应用程序 - >中装配信息......。



在那里你可以设置所有装配信息。



否则你应该可以使用文件AssemblyInfo.vb



进口系统
进口系统。反馈
进口System.Runtime.InteropServices

''关于程序集的一般信息通过以下
''属性集来控制。更改这些属性值以修改与程序集关联的信息
''。

''查看装配属性的值

< assembly:xmlns:assembly =#unknown>
< assembly:>
< assembly:>
< assembly:>
< assembly:>
< assembly:>

< assembly:>

''如果此项目暴露给COM
< assembly:>,则以下GUID用于typelib的ID。

''程序集的版本信息包含以下四个值:
''
''主要版本
''次要版本
''内部版本号
''修订版
''
''你可以指定所有值,或者你可以使用''*''来默认构建和修订号码
''如下所示:
''< assembly:>

< assembly:>
< assembly:>
< / assembly:>< / assembly:>< / assembly:>< / assembly:>< / assembly:>< / assembly:>< / assembly产品:>< /装配产品:>< /装配产品:>< /装配产品:>< /装配产品:>


Hi All,

I have developed 1 simple application to generate payslip, Now I have made some modification to that application and now I have to change the Version number from 1.0 to 1.1, How can I do that so that its displayed during Setup running and also in the Control panel.
Please help me

解决方案

You can change the assembly version through the AssemblyInfo file.
Go through http://msdn.microsoft.com/en-us/library/ms973869.aspx[^] which explains this in further detail.


Hi,

You can change the version when you double click on "My Project" , next in "Application" -> "Assembly Information ...".

There you can set all assembly information.

Else you should be able to do with the file "AssemblyInfo.vb"

Imports System
Imports System.Reflection
Imports System.Runtime.InteropServices

'' General Information about an assembly is controlled through the following 
'' set of attributes. Change these attribute values to modify the information
'' associated with an assembly.

'' Review the values of the assembly attributes

<assembly: xmlns:assembly="#unknown"> 
<assembly:> 
<assembly:> 
<assembly:> 
<assembly:> 
<assembly:> 

<assembly:>

''The following GUID is for the ID of the typelib if this project is exposed to COM
<assembly:> 

'' Version information for an assembly consists of the following four values:
''
''      Major Version
''      Minor Version 
''      Build Number
''      Revision
''
'' You can specify all the values or you can default the Build and Revision Numbers 
'' by using the ''*'' as shown below:
'' <assembly:> 

<assembly:> 
<assembly:> 
</assembly:></assembly:></assembly:></assembly:></assembly:></assembly:></assembly:></assembly:></assembly:></assembly:></assembly:>


这篇关于如何更改已开发项目的版本号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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