AssemblyVersionAttribute Constructor
This page is specific to:.NET Framework Version:1.12.03.03.5Silverlight 34.0
.NET Framework Class Library
AssemblyVersionAttribute Constructor

Initializes a new instance of the AssemblyVersionAttribute class with the version number of the assembly being attributed.

[Visual Basic]
Public Sub New( _
   ByVal version As String _
)
[C#]
public AssemblyVersionAttribute(
   string version
);
[C++]
public: AssemblyVersionAttribute(
   String* version
);
[JScript]
public function AssemblyVersionAttribute(
   version : String
);

Parameters

version
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, 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

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

AssemblyVersionAttribute Class | AssemblyVersionAttribute Members | System.Reflection Namespace

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View