如何更改EXE文件的版本号. [英] How to change version number of the EXE file.

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

问题描述

大家好,
我已经编写了一个小型C#应用程序,并且在debug文件夹中具有该文件的EXE文件.我需要更改该文件的文件版本.每当我编辑该文件时,我都无法更改其版本.谁能告诉我我该怎么做.
还请让我知道如何从应用程序代码本身读取版本.

Hello All,
I have written a small C# application and have the EXE file for that in the debug folder. I need to change the file version for that file. When ever i edit that file i am unable to change its version. Can any one tell me how i can do it.
Also please let me know how i can read the version from the application code itself.

推荐答案

您在app.config文件中进行了设置.我无法想象如果您想查找该信息将很难找到.
you set it in the app.config file. I can''t imagine that it would have been hard to find this info if you''d tried to look.


除了App.Config,您还可以处理 AssemblyInfo 文件,该文件必须存在于应用程序的属性文件夹中.
Apart from App.Config, you can handle the version in AssemblyInfo file that must be present in your application''s properties folder.


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

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