Generates version information based on various algorithms
Namespace: MSBuild.Community.Tasks
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)
Syntax
Example
Get version information from file and increment revision.
Copy Code | |
---|---|
<Version VersionFile="number.txt" BuildType="Automatic" RevisionType="Increment"> <Output TaskParameter="Major" PropertyName="Major" /> <Output TaskParameter="Minor" PropertyName="Minor" /> <Output TaskParameter="Build" PropertyName="Build" /> <Output TaskParameter="Revision" PropertyName="Revision" /> </Version> <Message Text="Version: $(Major).$(Minor).$(Build).$(Revision)"/> |
Copy Code | |
---|---|
<Version BuildType="Automatic" RevisionType="Automatic" Major="1" Minor="3" > <Output TaskParameter="Major" PropertyName="Major" /> <Output TaskParameter="Minor" PropertyName="Minor" /> <Output TaskParameter="Build" PropertyName="Build" /> <Output TaskParameter="Revision" PropertyName="Revision" /> </Version> <Message Text="Version: $(Major).$(Minor).$(Build).$(Revision)"/> |
Inheritance Hierarchy
Thread Safety
Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
See Also
Documentation version 1.0.0.0.