AssemblyInfo.AssemblyVersion Property

MSBuild Extension Pack

AssemblyInfoAssemblyVersion Property MSBuild Extension Pack Help 4.0.12.0
The complete version of the assembly.

Namespace: MSBuild.ExtensionPack.Framework
Assembly: MSBuild.ExtensionPack (in MSBuild.ExtensionPack.dll) Version: 4.0.0.0
Remarks

Use AssemblyVersion to directly set the entire version number with a single parameter. For example, if you know you want your version to be "1.2.3.4", you can set AssemblyVersion to this instead of having to use each of the individual AssemblyMajorVersion, AssemblyMinorVersion, AssemblyBuildNumber, and AssemblyRevision properties.

Note that the other four properties override this one. For example, If you set AssemblyVersion to "1.2.3.4" and then set AssemblyMinorVersion to 6, the resulting version will be "1.6.3.4".

This property is an input only. If you want to know what the final version generated was, use the MaxAssemblyVersion output property instead.

When using the MSBuild.ExtensionPack.VersionNumber.Targets file the best way to specify this is to set the AssemblyVersion property.

Examples

<AssemblyVersion>1.2.3.4</AssemblyVersion>
See Also

Reference