谢谢, 西塔琴。 Hi, I would like to include the build time in my application.It''s for my ? / About ... menu. It''s annoying to change the label.Textproperty for every release. Is it possible to do so? Thanks,Sitar. 推荐答案 您可以从执行程序集中获取它: System.Reflection.Assembly.Get?* ExecutingAssembly()。GetName()。?*版本 还要确保AssemblyInfo。 cs包含以下字符串: [assembly:AssemblyVersion(" 1.0。*")] 祝你好运, Sergey Bogdanov http://www.sergeybogdanov.com Sitar写道:You may get it from executing assembly: System.Reflection.Assembly.Get?*ExecutingAssembly( ).GetName().?*Version Also make sure that AssemblyInfo.cs contains the following string: [assembly: AssemblyVersion("1.0.*")]Best regards,Sergey Bogdanov http://www.sergeybogdanov.comSitar wrote: 我想在我的应用程序中包含构建时间。这是给我的? /关于...菜单。更改每个版本的label.Text 属性很烦人。 是否可以这样做? 谢谢,西塔琴。 Hi, I would like to include the build time in my application. It''s for my ? / About ... menu. It''s annoying to change the label.Text property for every release. Is it possible to do so? Thanks, Sitar. 哎呀,我的意思是你可能会得到一个汇编版本而不是构建时间。 祝你好运, Sergey Bogdanov http://www.sergeybogdanov.com Sergey Bogdanov写道:Ouch, I meant you may get an assembly version instead of build time. Best regards,Sergey Bogdanov http://www.sergeybogdanov.comSergey Bogdanov wrote:你可以从执行汇编中得到它: System.Reflection.Assembly.Get?* ExecutingAssembly( ).GetName()。?*版本 还要确保AssemblyInfo.cs包含以下字符串: [assembly:AssemblyVersion(" 1.0。*") ] 祝你好运, Sergey Bogdanov http: //www.sergeybogdanov.com Sitar写道: You may get it from executing assembly: System.Reflection.Assembly.Get?*ExecutingAssembly( ).GetName().?*Version Also make sure that AssemblyInfo.cs contains the following string: [assembly: AssemblyVersion("1.0.*")] Best regards, Sergey Bogdanov http://www.sergeybogdanov.com Sitar wrote: 我想在我的应用程序中包含构建时间。这是给我的? /关于...菜单。更改每个版本的 label.Text属性很烦人。 是否可以这样做? 谢谢,西塔琴。 Hi, I would like to include the build time in my application. It''s for my ? / About ... menu. It''s annoying to change the label.Text property for every release. Is it possible to do so? Thanks, Sitar. Hi Sitar 这可能会有所帮助 系统.IO.File.GetCreationTime(Assembly.GetExecuti ngAssembly()。Location) " Sitar" <硅*** @ discussions.microsoft.com>在消息中写道 新闻:A2 ********************************** @ microsof t.com ... Hi Sitar This might helpSystem.IO.File.GetCreationTime(Assembly.GetExecuti ngAssembly().Location)"Sitar" <Si***@discussions.microsoft.com> wrote in messagenews:A2**********************************@microsof t.com... 我想在我的应用程序中包含构建时间。这是给我的? /关于...菜单。更改每个版本的label.Text 属性很烦人。 是否可以这样做? 谢谢,西塔琴。 Hi, I would like to include the build time in my application. It''s for my ? / About ... menu. It''s annoying to change the label.Text property for every release. Is it possible to do so? Thanks, Sitar. 这篇关于在exe文件中包含构建时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-27 16:25