是否可以将版本号放在标题栏中? [英] Is it possible to put the version number in the title bar?

查看:93
本文介绍了是否可以将版本号放在标题栏中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将我的应用程序的版本号放在标题栏中?当报告错误/请求新功能时,用户能够确认他们正在运行的版本会很有帮助。


Sam

解决方案

嗨Sam,


是的,的确如此!


好吧,如果你的应用是OOB(Out Of Browser),我不知道怎么做,如果不是OOB(不是说它不可能,只是我还没有完成)。


在Windows中资源管理器,您将在"ProjectName \ClientGenerated \ My Project"中找到一个名为"OutOfBrowserSettings.xml"的文件。文件夹(如果需要,您也可以在VS / LS内找到该文件,您只需在"文件模式"中查看项目&"显示主要LS项目的
所有文件") 。


在该文件中有一行

 <   WindowSettings     标题  = " 无论你想要什么标题vx .y "    宽度  = "  1152 "    高度  = "  864 "   />  

你会注意到你n还设置宽度&这里窗户的高度也是如此。我没有找到一种自动执行此操作的方法,所以你必须自己更新它,但这是*我*使用的方法。


Yann


Is it possible ot put the version number of my application in the title bar? It would be helpful for users to be able to confirm the version they're running when reporting bugs/requesting new features.

Sam

解决方案

Hi Sam,

Yes, indeed it is!

Well, it is if your app is OOB (Out Of Browser), I don't know how to do it if it's not OOB (not saying it's not possible, just that I haven't done it).

In Windows Explorer, you'll find a file caled "OutOfBrowserSettings.xml", in the "ProjectName\ClientGenerated\My Project" folder (you can find the file from inside VS/LS as well if you want, you just have to be viewing the project in "File Mode" & "Showing All Files" for the main LS project).

In that file is a line that has

<WindowSettings Title="Whatever Title You Want vx.y" Width="1152" Height="864" />

You'll notice you can also set the width & height of the window here as well. I haven't found an automatic way of doing this, so you have to keep it updated yourself, but this is the method *I* use.

Yann


这篇关于是否可以将版本号放在标题栏中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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