> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetPackageVersionFromManifest

> GetPackageVersionFromManifest

# GetPackageVersionFromManifest

Returns the version of the package for the specified application manifest.

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
HRESULT GetPackageVersionFromManifest(
         PCWSTR manifestPath,
         UINT64* packageVersion
)
```

<a id="parametersSection" />

### Parameters

*manifestPath*   \_In\_\
Type: PCWSTR

The path to the manifest.

*packageVersion*   \_Out\_\
Type: UINT64\*

On return, contains the version of the package.

<a id="retvalSection" />

### Return value

Type: HRESULT

Returns `S_OK` if successful. Otherwise, returns an error code. For a list of error codes, see [Error Codes](/reference/errorcodes).

<a id="remarksSection" />

## Remarks

To determine whether the manifest is a Microsoft Game Development Kit (GDK) manifest, call [GetIsGameCorePartition](/reference/tools/packagingservices/functions/getisgamecorepartition).

To parse the manifest and validate the schema, call [ValidateSchemaForManifest](/reference/tools/packagingservices/functions/validateschemaformanifest).

For more information about packaging, see [Overview of packaging](/build/core-features/common/packaging/overviews/packaging).

<a id="requirementsSection" />

## Requirements

**Header:** packagingservices.h

**Library:** packagingservices.lib

**Supported platforms:** Windows (for XBOX console tools)

<a id="seealsoSection" />

## See also

[PackagingServices](/reference/tools/packagingservices/packagingservices_members)


## Related topics

- [PackagingServices](/reference/tools/packagingservices/packagingservices_members.md)
- [GetPackageFamilyNameFromManifest](/reference/tools/packagingservices/functions/getpackagefamilynamefrommanifest.md)
- [GetPackageFullNameFromManifest](/reference/tools/packagingservices/functions/getpackagefullnamefrommanifest.md)
- [MicrosoftGame.config overview](/build/core-features/common/game-config/MicrosoftGameConfig-Overview.md)
- [GetPackageInfoFromGameConfig](/reference/tools/packagingservices/functions/getpackageinfofromgameconfig.md)
