Поделиться через


Version Element (ADF)

Contains elements that specify the current application version number.

Синтаксис

<Application>
    ...
    <Version>

Element Characteristics

Characteristic Description

Data type

None.

Default value

None.

Occurrence

Optional once per Application element.

Updates

Can be added and deleted when updating the application.

Element Relationships

Relationship Elements

Parent element

Application Element (ADF)

Child elements

Major Element (ADF)

Minor Element (ADF)

Build Element (ADF)

Revision Element (ADF)

Замечания

When updating the Version child elements, the complete version number must be greater than or equal to the previous version number.

For example, as shown in the following table, updating from the initial version number of 2.1.24.0 to 2.1.24.1 is fine. However, updating the version to 2.0.24.1 raises an error when you update the application.

Initial version number Acceptable update Invalid update
<Major>2</Major> 
<Minor>1</Minor> 
<Build>24</Build> 
<Revision>0</Revision>
<Major>2</Major> 
<Minor>1</Minor> 
<Build>24</Build> 
<Revision>1</Revision>
<Major>2</Major> 
<Minor>0</Minor> 
<Build>24</Build> 
<Revision>1</Revision>

Пример

The following example shows how to specify a current application version number of 2.1.3.10.

<Version>
    <Major>2</Major>
    <Minor>1</Minor>
    <Build>3</Build>
    <Revision>10</Revision>
</Version>

См. также

Справочник

Application Definition File Reference

Другие ресурсы

Задание версий и журнала приложения
Обновление экземпляров и приложений

Справка и поддержка

Получение помощи по SQL Server 2005