查看在VS2008本届大会的版本号 [英] View current Assembly Version number within VS2008

查看:164
本文介绍了查看在VS2008本届大会的版本号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有一种方法可以看到在Visual Studio 2008 IDE中最后完成的构建的程序集版本号。我不希望看到的1.0。*这是在大会信息对​​话框或集信息文件,而是完整版本(与*的用实数取代)。我也不希望有弹出项目的可执行文件或组件的属性。

I would like to know if there is a way to see Assembly Version number of the last completed build within the Visual Studio 2008 IDE. I don't want to see the 1.0.* that is in the Assembly Information dialog box or AssemblyInfo file, but rather the full version (with the *'s replaced by real numbers). I also don't want to have to bring up the Properties of the project's executable or assembly.

推荐答案

好了,我觉得我得到你的问题现在好了,你希望看到什么样的内部版本号,而无需实际建设......作为,如何做视觉工作室知道下一个数字将是当它设置为*?

OK, I think I get your question better now, you want to see what the build number is, without actually building... as in, how does Visual Studio know what the next number will be when its setting is at * ?

如果您使用自动生成的数字,比方说你有1.0 *和VS生成一个值,如1.0.3245.1234

If you use automated build numbers, Lets say you have 1.0.* and VS builds a value such as 1.0.3245.1234

在3245是自1月1日日,2000

The 3245 is days since Jan 1st, 2000

1234是自午夜秒,除以二。

the 1234 is seconds since midnight, divided by two.

回答您的编辑:

我唯一能想到的拿到版本号,不执行一些code中的组件内,或检查文件的属性,是使某种后生成事件,即检查该组件的属性和弹出一个消息框显示出来,或者更好的,写了评论AssemblyInfo.cs中的顶配版本号文件

The only thing I can think of to get the build number without executing some code within the assembly, or checking the file properties, is to make some sort of post build event, that checks the properties of the assembly and pops up a message box displaying it, or better yet, write a comment to the top of the AssemblyInfo.cs file with the build number

这篇关于查看在VS2008本届大会的版本号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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