在Windows应用程序中更改版本号的位置? [英] Where to change version number in windows application?

查看:66
本文介绍了在Windows应用程序中更改版本号的位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在发布之前我在哪里更改编码中的程序版本号?



示例:我使用文本框创建一个form1.cs。即,默认情况下为1.0.0.0版本。



我创建另一个带有2个文本框的form1.cs作为另一个应用程序。即,现在我想将此版本1.0.0.0更改为1.0.0.1

解决方案

您好。



我建议你使用这个小插件:

http://autobuildversion.codeplex.com/ [ ^ ]



问候。


您可以编辑AssemblyInfo.cs文件

  //   [assembly:AssemblyVersion(1.0。*)]  
[ assembly : AssemblyVersion( 1.0.0.0)]
[汇编:AssemblyFileVersion( 1.0.0.0)]



有关构建版本的进一步设置,您可以浏览您的安装项目或开发p自己的加载项,用于自动增加版本。


我自己找到了解决方案,我们需要为项目添加application.manifest文件,我们可以手动更改版本。

Where do i change my program version number in coding before publishing?

Example: I create one form1.cs with textbox. i.e, 1.0.0.0 version by default.

I create another form1.cs with 2 textboxes as another application. i.e, Now i want to change this version 1.0.0.0 to 1.0.0.1

解决方案

Hi.

I recommend you using this little Add-in:
http://autobuildversion.codeplex.com/[^]

Greetings.


You can edit AssemblyInfo.cs file

// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]


For further settings regarding build version you can explore your setup project or develop your own add-in for automated version increment.


I found solution myself, We need to add application.manifest file for the project, and we can change there version manually.


这篇关于在Windows应用程序中更改版本号的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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