程序集版本号 [英] Assembly version number
问题描述
大家好,
我正在写一个Windows服务,并希望检索版本号
大会。在Windows应用程序中,有一个Application类,
包含此信息。在Windows服务中是否有类似的方法?
Landley
Hello All,
I am writing a windows service and wish to retrieve the version number of
the assembly. In a windows application, there is the Application class that
contains this information. Is there a similar method in windows services?
Landley
推荐答案
http://bernardstudios.com/archive/2004/11/06/387.aspx
" Landley" <是ne ** @ creations-software.co.uk>在消息中写道
新闻:O1 ************** @ TK2MSFTNGP15.phx.gbl ...
http://bernardstudios.com/archive/2004/11/06/387.aspx
"Landley" <ne**@creations-software.co.uk> wrote in message
news:O1**************@TK2MSFTNGP15.phx.gbl...
Hello All,
我正在编写一个Windows服务,并希望检索
程序集的版本号。在Windows应用程序中,有一个Application类
包含这些信息。在Windows服务中是否有类似的方法?
Landley
Hello All,
I am writing a windows service and wish to retrieve the version number of
the assembly. In a windows application, there is the Application class
that
contains this information. Is there a similar method in windows services?
Landley
http://bernardstudios.com/archive/2004/11/06/387.aspx
" Landley" <是ne ** @ creations-software.co.uk>在消息中写道
新闻:O1 ************** @ TK2MSFTNGP15.phx.gbl ...
http://bernardstudios.com/archive/2004/11/06/387.aspx
"Landley" <ne**@creations-software.co.uk> wrote in message
news:O1**************@TK2MSFTNGP15.phx.gbl...
Hello All,
我正在编写一个Windows服务,并希望检索
程序集的版本号。在Windows应用程序中,有一个Application类
包含这些信息。在Windows服务中是否有类似的方法?
Landley
Hello All,
I am writing a windows service and wish to retrieve the version number of
the assembly. In a windows application, there is the Application class
that
contains this information. Is there a similar method in windows services?
Landley
I我正在写一个Windows服务,并希望检索组件的版本号。在Windows应用程序中,有一个Application类,它包含这些信息。在Windows服务中是否有类似的方法?
I am writing a windows service and wish to retrieve the version number of
the assembly. In a windows application, there is the Application class that
contains this information. Is there a similar method in windows services?
Assembly.GetName()。版本。您可以使用
typeof(SomeClassInTheAssembly)获得Assembly参考.Assembly或
Assembly.GetExecutingAssembly()。
Mattias
-
Mattias Sj?gren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
请回复到新闻组。
Assembly.GetName().Version. You can get the Assembly reference with
typeof(SomeClassInTheAssembly).Assembly or
Assembly.GetExecutingAssembly().
Mattias
--
Mattias Sj?gren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
这篇关于程序集版本号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!