AssemblyVersionAttribute(String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the AssemblyVersionAttribute
class with the version number of the assembly being attributed.
public:
AssemblyVersionAttribute(System::String ^ version);
public AssemblyVersionAttribute (string version);
new System.Reflection.AssemblyVersionAttribute : string -> System.Reflection.AssemblyVersionAttribute
Public Sub New (version As String)
Parameters
- version
- String
The version number of the attributed assembly.
Remarks
The format of the version
string is: major
. minor
. build
. revision
.
When specifying a version, you have to at least specify major
. If you specify major
and minor
, you can specify an asterisk (*) for build
. This will cause build
to be equal to the number of days since January 1, 2000 local time, and for revision
to be equal to the number of seconds since midnight local time (without taking into account time zone adjustments for daylight saving time), divided by 2.
If you specify major
, minor
, and build
, you can specify an asterisk for revision
. This will cause revision
to be equal to the number of seconds since midnight local time, divided by 2.
Examples of valid version strings include:
1
1.1
1.1.*
1.1.1
1.1.1.*
1.1.1.1
Applies to
See also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應